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