#include <iostream>
#include<cmath>
#include <string>
using namespace std;
int main() {
int A, B;
cin >> A >> B;
long long all = 0;
long long even = 0;
long long odd = 0;
if (A > B) {
swap(A, B);
}
for (int i = A;i <= B;i++) {
all +=i;
if (i % 2 == 0)
even +=i;
else {
odd +=i;
}
}
cout << all << endl << even << endl << odd;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZTxjbWF0aD4KI2luY2x1ZGUgPHN0cmluZz4KdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCmludCBtYWluKCkgewogICAgaW50IEEsIEI7CiAgICBjaW4gPj4gQSA+PiBCOwogICAgbG9uZyBsb25nIGFsbCA9IDA7CiAgICBsb25nIGxvbmcgZXZlbiA9IDA7CiAgICBsb25nIGxvbmcgb2RkID0gMDsKCiAgICBpZiAoQSA+IEIpIHsKICAgICAgICBzd2FwKEEsIEIpOwogICAgfQoKICAgIGZvciAoaW50IGkgPSBBO2kgPD0gQjtpKyspIHsKICAgICAgICBhbGwgKz1pOwogICAgICAgIGlmIChpICUgMiA9PSAwKQogICAgICAgICAgICBldmVuICs9aTsKICAgICAgICBlbHNlIHsKICAgICAgICAgICAgb2RkICs9aTsKICAgICAgICB9CiAgICB9CiAgICBjb3V0IDw8IGFsbCA8PCBlbmRsIDw8IGV2ZW4gPDwgZW5kbCA8PCBvZGQ7CgogICAgcmV0dXJuIDA7Cn0=