#include int main() { int A, B; std::cin >> A >> B; int ans = 3; for (int i = 23; i <= 25; i++) { if (A <= i and i <= B) { ans--; } } std::cout << ans << std::endl; return 0; }