c=0 num=0 n= int(input()) while True: c=c+1 num=num+c if c == n: break print(num)