n=int(input()) c=[q:=0]*-~n for i in range(1,n+1): k=2 while k*k<=i: if i%k<1:c[i]=c[i//k]+(4,1)[i//k%k>0];break k+=1 q+=c[i]==3 print(q)