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