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