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