sum = 0 i = 1 N = input() int_n = int(N) while int_n <= 0 or 100 < int_n: N = input() int_n = int(N) while i <= int_n: sum += i i = i + 1 print(sum)