#include<iostream>
#include<algorithm>
using namespace std;
int main(){
int x,y;
cin>>x;
cin>>y;
int s=0;
if(x>y) swap(x,y);
for(int i=x+1;i<y;i++){
if(i%2!=0)//如果写i%2==1,结果将不对,因为,负数对2取余是-1
s+=i;
}
cout<<s<<endl;
return 0;
}