#include<bits/stdc++.h>//万能头 using namespace std; int main(void){ cin.tie(0);//代码优化 ios::sync_with_stdio(false);//代码优化 int a,b;cin>>a>>b; if(a>=b) b+=24; cout<<"O JOGO DUROU "<<b-a<<" HORA(S)"; }