#include <iostream>
using namespace std;
int main() {
long a, b, n, S;
cin >> a >> b;
n = b - a + 1;
S = (a + b) * n / 2;
cout << S;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7Cglsb25nIGEsIGIsIG4sIFM7CgljaW4gPj4gYSA+PiBiOwoJbiA9IGIgLSBhICsgMTsKCVMgPSAoYSArIGIpICogbiAvIDI7Cgljb3V0IDw8IFM7CglyZXR1cm4gMDsKfQ==