#include using namespace std; typedef long long ll; int main() { int a, b; cin>>a>>b; int ans = 3; for (int i = a; i <= b; i++) if (23 <= i && i <= 25) ans--; cout << ans << endl; return 0; }