#include using namespace std; using ll = long long; #define rep(i, s, n) for(int i=(0+s); i < (n+s); i++) //pair-> P template using P = pair; template struct item {T A, B, C;}; int main(){ ios::sync_with_stdio(false); cin.tie(nullptr); int L, R; cin >> L >> R; int l_cnt=0, r_cnt=0; if(L<=295)l_cnt=0; else if(L<=416) l_cnt=1; else l_cnt=2; if(R<=295)r_cnt=0; else if(R<=416) r_cnt=1; else r_cnt=2; cout << r_cnt-l_cnt << endl; return 0; }