n=int(input())+1 C=[p:=1]*n while~p+n: i=p=p+1 while i<2//C[p]*n:C[i]+=5**(i/p%p<1);i+=p print(C.count(5))