from itertools import product print( [i[0] * i[1] for i in product([2, 3, 5, 7, 11, 13], [4, 6, 8, 9, 10, 12])].count(int(input())) / 36 )