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