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