#include<bits/stdc++.h>
using namespace std;
bool rn(int n){
if( ( n % 4 == 0) && ( n % 100 != 0) || ( n % 400 == 0)) return true;
else return false;
}
int main( ){
int x,y,t=0;
cin >> x >> y;
for(int i=x;i<=y;i++)
if(rn(i)) t++;
cout << t << endl;
return 0;
}
“&&”是逻辑且,“||”是逻辑或。