n = int(input()) l = [] for i in range(n+1): for j in range(n+1): for k in range(n+1): if i+j+k == n: l.append([i,j,k]) #print([i,j,k]) print(len(l))