try : while True: n = int(input()) space = ((n+1)*((n*n)-n+6))/6 print('%d' % (space)) except EOFError: pass