#include int main() { int n = 0; int a, b; std::cin >> a >> b; for (int i = a; i <= b; i++) { if (i==23 || i == 24 || i ==25) n++; } std::cout << 3 - n << std::endl; }