import sys
for line in sys.stdin:
n = int(line.strip()) # 计算结果 result = n * (n + 1) // 2 # 输出结果 print(result)