from decimal import * n = int(input()) ans = 0 for x in range(n+1): for y in range(n+1): z = n - x - y if (z < 0) or (z > n): continue elif(x + y + z) == n: ans += 1 print(ans)