#include <iostream>using namespace std ;
int main(){int a,b,c,i;while (cin>>a>>b){ c=0; for (i=a;i<=b;i++) { c=c+(i%2==0); } cout <<c<<endl;}
return 0;
}