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