import math
def is_prime(n):
    for i in range(2,n):
        if i*i > n:
            return True
        if n%i == 0:
            return False
    return 1
c = 0
for i in range(int(input())):
    if is_prime(i): c+= 1
print(c)
