#include using namespace std; using ll = long long; #define ALL(a) (a).begin(), (a).end() #define Yes cout << "Yes" << endl #define No cout << "No" << endl #define endl '\n' int main() { ios::sync_with_stdio(false); cin.tie(nullptr); int L, R; cin >> L >> R; int ans = 0; int n = L; while (n < R) { n++; if (n == 296) ans++; if (n == 417) ans++; } cout << ans << endl; }