N=int(input()) P=[k for k in range(2,120000)if all(k%i for i in range(2,int(k**0.5)))] print(len(P))