n = int(input()) ans = 0 for x in range(n + 1): for y in range(n + 1): if x + y > n: break ans += 1 print(ans)