s=[2,3,5,7,11,13] g=[4,6,8,9,10,12] t=[i*j for i in s for j in g] k=int(input()) print(t.count(k)/36)