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