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)