def calculate_sum(n): total = 0 for i in range(1, n+1): total += i return total n = int(input()) sum_result = calculate_sum(n) print(sum_result)