#include<bits/stdc++.h> using namespace std; int main(){ double z,a,b; int x,y; cin>>x>>y; z=y-x; a=z/2; b=ceil(a); cout<<b; return 0; }