p = [2,3,5,7,11,13] c = [4,6,8,9,10,12] k = int(input()) i = [k/i for i in p] n = 0 for d in i: if d in c: n += 1 ans = n * 1/36 print(ans)