a = int(input()) result = 0 for i in range(1, a+1): result += i print(result)
https://www.acmicpc.net/problem/8393