K = int(input()) P = [2, 3, 5, 7, 11, 15] C = [4, 6, 8, 9, 10, 12] print(K) cnt = 0 for p in P: for c in C: if p * c == K: cnt += 1 print(cnt / 36)