int main(){ int a,b,n=0; cin >> a; cin >> b; for(int i = a;i<=b;i++){ n+= ((i%2)+1)%2; } cout << n; return 0;}