from collections import Counter C=Counter() for x in [2,3,5,7,11,13]: for y in [4,6,8,9,10,12]: C[x*y]+=1 K=int(input()) print(C[K]/36)