N = int(input("Please input an integer: ")) i = 1 x = range(1, N + 1) for i in x: nums = range(1, i + 1) print(int(sum(nums)))