n=int(input()) l=[0]*(n+1) for i in range(2,n): if l[i]==0: for j in range(2*i,n+1,i): l[j]+=1 if j%(i*i)==0: l[j]+=5 print(l.count(4))