#include using namespace std; using ll=long long; int main(){ int l,r; cin>>l>>r; int ans=0; if(l<=295&&r>=296)ans++; if(l<=416&&417<=r)ans++; cout<