import sys readline=sys.stdin.readline write=sys.stdout.write from math import gcd as GCD import math N=int(readline()) ans=0 for x in range(N+1): for y in range(N+1): if x+y<=N: ans+=1 print(ans)