K = int(input()) prime = [2,3,5,7,11,13] go = [4,6,8,9.10,12,] count = 0 for i in prime: for j in go: if i * j == K:count += 1 print(count / 36)