#include<bits/stdc++.h>
using namespace std;
int main(){
int x,y,p;
cin>>x>>y;
if(x%2==0) x--;
if(y%2!=0) y++;
p=(y-x)/2+1;
cout<<p;
return 0;
}
#include<bits/stdc++.h>
using namespace std;
int main(){
int x,y,p;
cin>>x>>y;
if(x%2==0) x--;
if(y%2!=0) y++;
p=(y-x)/2+1;
cout<<p;
return 0;
}