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