#T396. 求满足条件的整数个数
求满足条件的整数个数
Description
In the range 1 to n, find the count of all integers that satisfy the following conditions simultaneously:
- Leaves a remainder of 2 when divided by 3,
- Leaves a remainder of 3 when divided by 5,
- Leaves a remainder of 2 when divided by 7.
If no such integer exists, output 0.
Input Format
The input consists of a single line containing one integer n (1 ≤ n ≤ 2000).
Output Format
Output a single line (which means there should be a newline character at the end) containing one integer.
10
0
## Source
CodesOnline
The translation keeps the original markdown heading format (##) and the text "CodesOnline" unchanged, as it appears to be a proper name/title that doesn't require translation. The structure is preserved exactly as in the source.