#32324: python 一行


yuxuan0912 (李毓萱Laura)


(lambda x:print(int((x+1)*x*(2*x+1)/6)))(int(input()))