#include <cstdio>
using namespace std;
int main(){
int x,y;
int sum=0;
scanf("%d\n%d",&x,&y);
if(x>=y){
for(int i=y+1;i<x;i++){
if(i%2!=0) //要注意,这里不能写i%2==1,因为-5%2==-1
sum+=i;
}
}
else{
for(int i=x+1;i<y;i++){
if(i%2!=0)
sum+=i;
}
}
printf("%d",sum);
return 0;
}