l = input().split() a = int(l[0]) for i in range (1, len(l)): if int(l[i]) > 0: n = int(l[i]) break sum = 0 for j in range (a, a+n): sum += j print(sum)