K = input() print sum(p*c==K for p in [2,3,5,7,11,13] for c in [4,6,8,9,10,12])/36.