#include #define rep(i, n) for (int i = 0; i < n; ++i) using ll = long long; using namespace std; const int INF = 1e9; int main() { int a, b; cin >> a >> b; ++b; int imos[32] = {0}; ++imos[a]; --imos[b]; rep(i, 31) imos[i + 1] += imos[i]; cout << 3 - (imos[23] + imos[24] + imos[25]) << endl; return 0; }