N = int(input()) ans = 0 for i in range(100): for j in range(i + 1): for k in range(100): score = i * 5 + j * 2 + k * 3 if score == N: ans += 1 print(ans)