#include using namespace std; int main() { int L, R; cin >> L >> R; vector s = {295, 416}; int ans = 0; for (int t : s) if (L <= t and t < R) ans++; cout << ans << endl; }