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