630J.md (1166B)
1 Source: https://codeforces.com/problemset/problem/630/J 2 3 J. Divisibility 4 5 time limit per test 6 7 0.5 seconds 8 9 memory limit per test 10 11 64 megabytes 12 13 input 14 15 standard input 16 17 output 18 19 standard output 20 21 IT City company developing computer games invented a new way to reward its employees. After a new game release users start buying it actively, and the company tracks the number of sales with precision to each transaction. Every time when the next number of sales is divisible by all numbers from 2 to 10 every developer of this game gets a small bonus. 22 23 A game designer Petya knows that the company is just about to release a new game that was partly developed by him. On the basis of his experience he predicts that *n* people will buy the game during the first month. Now Petya wants to determine how many times he will get the bonus. Help him to know it. 24 25 Input 26 27 The only line of the input contains one integer *n* (1 ≤ *n* ≤ 1018) — the prediction on the number of people who will buy the game. 28 29 Output 30 31 Output one integer showing how many numbers from 1 to *n* are divisible by all numbers from 2 to 10. 32 33 Examples 34 35 Input 36 37 ``` 38 3000 39 ``` 40 41 Output 42 43 ``` 44 1 45 ```