#include <iostream> #include <cstdio> using namespace std; int main() { int x, y; cin >> x >> y; if (x == y) cout << "O JOGO DUROU 24 HORA(S)"; else printf("O JOGO DUROU %d HORA(S)",((y + 24) - x ) % 24); return 0; }