k=int(input()) if k>=168:print(0);exit() a=[2,3,5,7,11,13] b=[4,6,8,9,10,12] lst=[0]*(13**2) for i in a: for j in b: lst[i*j]+=1 print(lst[k]/36)