N = int(input()) c = 0 for x in range(N//5+1): for y in range(N//2+1): for z in range(N//3+1): if 5*x + 2*y + 3*z == N and x >= y: c += 1 print(c)