#include <bits/stdc++.h> using namespace std; int l,r,ans; int main(){ cin>>l>>r; for(int i = l;i<=r;i++){ if(i%2==0) ans++; } cout<<ans; return 0; }