#include using namespace std; //#include //using namespace atcoder; #define ll long long #define ld long double #define yes cout << "Yes" #define no cout << "No" #define INF 1LL << 60 #define minusINF -1LL << 60 //#define INF 1e18 //const ll mod = 1000000007; const ll mod = 998244353; void solve() { } int main() { ios::sync_with_stdio(false); cin.tie(nullptr); ll L, R; cin >> L >> R; ll ans = 0; if (L <= 295 && 295 < R) ans++; if (L <= 416 && 416 < R) ans++; cout << ans; cout << "\n"; return 0; }