#include<bits/stdc++.h> using namespace std; int main(){ int a,b,num=0; cin>>a>>b; for(int i=a;i<=b;i++){ if(i%4==0||i%2!=0){ num++; } } cout<<num; }