num = input() sum = 0 while num > 0: sum += num num -= 1 print(sum)