#41885: PYTHON解 簡單解


suyueh (suyueh)


while True:
  try:
    r=0
    for i in range(1,int(input())):
      r=r+i
    print(r+1)
  except:
    break