IT City company developing computer games decided to upgrade its way to reward its employees. Now it looks the following way. 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 not divisible by any number from 2 to 10 every developer of this game gets a small bonus.

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.
The only line of the input contains one integer *n* (1 ≤ *n* ≤ 10<sup class="upper-index">18</sup>) — the prediction on the number of people who will buy the game.
none
12
2
2519
576
2521
577
1
1
314159265
71807832
718281828459045235
164178703647781768
1000000000000000000
228571428571428571
987654321234567890
225749559139329804
3628800
829440
504000000000000000
115200000000000000
import sys, threading
input = sys.stdin.readline
from collections import defaultdict
input = sys.stdin.readline

def main():
    n = int(input())
    p = [2,3,5,7]
    ans = 0
    for pi in p:
        ans+=(n//pi)
    i = 0
    while i < 4:
        j = i+1
        while j < 4:
            ans-=(n//(p[i]*p[j]))
            j+=1
        i+=1
    ans+=(n//30 + n//42 + n//105)
    ans-=(n//210)
    print(n-ans)
    




# Set the stack size
threading.stack_size(1 << 27)

# Create and start the main thread
main_thread = threading.Thread(target=main)
main_thread.start()

# Wait for the main thread to complete
main_thread.join()
