1721: 【CSP循环】求满足条件的整数个数▃

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:24 Solved:11

Description

 lns="http://www.w3.org/1998/Math/MathML">1n 中,找出能同时满足用 lns="http://www.w3.org/1998/Math/MathML">3 除余 lns="http://www.w3.org/1998/Math/MathML">2 ,用 lns="http://www.w3.org/1998/Math/MathML">5 除余 lns="http://www.w3.org/1998/Math/MathML">3 ,用 lns="http://www.w3.org/1998/Math/MathML">7 除余 lns="http://www.w3.org/1998/Math/MathML">2 的所有整数的个数,如果没有请输出 lns="http://www.w3.org/1998/Math/MathML">0 

Input

输入一行,只有一个整数 lns="http://www.w3.org/1998/Math/MathML">n(1n2000) 

Output

输出只有一行(这意味着末尾有一个回车符号),包括 lns="http://www.w3.org/1998/Math/MathML">1 个整数。

Sample Input Copy

100

Sample Output Copy

1