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