#include<bits/stdc++.h> using namespace std; int main(){ int l,r; cin>>l>>r; cout<<(r/4+(r+1)/2)-((l-1)/4+l/2); return 0; }