K = input() print sum(p*c==K for p in [2,3,5,7,11,13] for c in range(4,14,2))/36.