#include <iostream> #include <cstdio> using namespace std; int main(){ int A,B; cin >> A >>B; if (A!=B) printf("O JOGO DUROU %d HORA(S)",(B-A+24)%24); //注意是B-A,不是A-B else printf("O JOGO DUROU 24 HORA(S)"); return 0; }