#include<bits/stdc++.h> using namespace std; int main(){ int a,b; cin>>a>>b; int x=b-a; if(x<=0) x+=24; printf("O JOGO DUROU %d HORA(S)",x); return 0; }