sum = 0 first = input() A = int(first) for num in range(1, A+1): sum = sum + num print(sum)