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