sols=[2,3,5,7,11,13] sls=[4,6,8,9,10,12] cnt=0 n=int(input()) for j in range(6): for i in range(6): if sols[i]*sls[j]==n: cnt+=1 print(cnt/36)