N = int(input()) ans = 0 for t in range(N//5+1): for c in range(t+1): for p in range(N//3+1): if 5*t+2*c+3*p == N: ans += 1 print(ans)