K = int(input()) sosuu = [2,3,5,7,11,13] gouseisuu = [4,6,8,9,10,12] zisyou = 0 for i in sosuu: for j in gouseisuu: if i * j == K: zisyou += 1 print(zisyou / 36)