n=int(input()) li1=[2,3,5,7,11,13] li2=[4,6,8,9,10,12] l=[(x*y) for x in li1 for y in li2] if n in l: print(l.count(n)/36) else: print(0/36)