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