import sys from collections import defaultdict sys.setrecursionlimit(10 ** 6) int1 = lambda x: int(x) - 1 p2D = lambda x: print(*x, sep="\n") def MI(): return map(int, sys.stdin.readline().split()) def LI(): return list(map(int, sys.stdin.readline().split())) def LLI(rows_number): return [LI() for _ in range(rows_number)] def main(): prim=[2,3,5,7,11,13] comp=[4,6,8,9,10,12] mul=defaultdict(int) for p in prim: for c in comp: mul[p*c]+=1 k=int(input()) print(mul[k]/36) main()