n=int(input()) list=[] a=2 b=1 res=-1 while b <=n: a+=res list.append(a) res+=1 b+=1 print(list[n-1])