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