from itertools import product A = [2, 3, 5, 7, 11, 13] B = [4, 6, 8, 9, 10, 12] L = [] for i, j in product(A, B): L += [i * j] print(L.count(int(input())) / 36)