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