Hello, i just solved a pretty simple problem of URI in java. And want to share with you !

Solution with Explanation

So its basically a game of time, where we need to calculate the duration of the game, knowing that the game can begin in a day and finish in another day, with a maximum duration of 24 hours.

Input

Two integer numbers representing the start and end time of a game.

Sample input :

22 4

Output

Print the duration of the game as in the sample output.

Sample output :

O JOGO DUROU 6 HORA(S)

Hope this will help you and let me know if you have any better solution <3