def sum(l, r): res = 0 for i in range(l, r + 1): res += i return res l, r = map(int, input().split()) print(sum(l, r))