n=int(input()) ans=set() for x in range(n+1): for y in range(n+1): z=n-(x+y) if z>=0: ans.add((x,y,z)) print(len(ans))