primes=[2,3,5,7,11,13] comps=[4,6,8,9,10,12] cnt={} for prime in primes: for comp in comps: num=prime*comp if num not in cnt: cnt[num]=0 cnt[num]+=1 K=int(input()) if K not in cnt: print(0) else: print(cnt[K]/36)