first = input() A = int(first[0]) B = 0 i = 1 while i<=A: B=B+i i=i+1 print(B)