A = [2, 3, 5, 7, 11, 13] B = [4, 6, 8, 9, 10, 12] C = 0 K = int(input()) for a in A: for b in B: if a * b == K: C += 1 print(C / 36)