primes = [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59] le = len(primes) for i in range(le-1): primes[i+1] *= primes[i] # print(primes) n = int(input()) if n <= 5: print(1) exit() for i in range(le): if primes[i] < n: pass else: print(i) exit() print(15)