n1=[2,3,5,7,11,13] n2=[4,6,8,9,10,12] k=int(input()) ans=0 for i in range(6): for j in range(6): if n1[i]*n2[j]==k: ans=1 break if ans==1: print(1/36) else: print(0)