d1=[2,3,5,7,11,13] d2=[4,6,8,9,10,12] l=6 k=int(input()) c=0 for i in range(l): for j in range(l): c+=d1[i]*d2[j]==k print(c/(l*l))