N=int(input()) ans=0 for i in range(0,N+1): #上の玉の個数を全探索 sita=N-i; ans=max(ans,(N-i+1)*(i+1)-1) print(ans)