#include <iostream>
using namespace std;
void swap(int &a,int &b)
{
int t;
t=b;
b=a;
a=t;
}
int main()
int a,b,n;
while(cin>>a>>b)
if(a>b)
swap(a,b);
a+=a%2;
b-=b%2;
n=(b-a)/2+1;
cout<<(a+b)*n/2<<endl;
return 0;