#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include typedef long long ll; using namespace std; #ifdef LOCAL #define debug(x) cerr << __LINE__ << " : " << #x << " = " << (x) << endl; #else #define debug(x) ; #endif #define mod 1000000007 //1e9+7(prime number) #define INF 1000000000 //1e9 #define LLINF 2000000000000000000LL //2e18 #define SIZE 200010 int main(){ int a, b; int ans = 3; cin >> a >> b; for(int i=a;i<=b;i++) ans -= 23 <= i && i <= 25; cout << ans << endl; return 0; }