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