def sumed(l,r): s = 0 for i in range(l,r + 1): s += i return s a,b = map(int,input().split()) print(sumed(a,b))