Under construction

Still being built. Things may change

How to Feed the Dragon

Time limit2sMemory limit1024 MB

Summary
Given the feeding times for today and tomorrow, print the gap between them as HH:MM, with equal times giving 24:00.
Level

Easy2 of 10

Topics
Implementation, Math
Solved
No attempts yet

Problem

Valka read many zoology books and learned that dragons should be fed on a strict schedule. She decided to try this method on Grozokryl.

The dragon must be fed once a day at an exact time. However, that time can be different on different days. Valka made an individual feeding schedule for Grozokryl and knows exactly when the dragon must be fed.

Valka has a very poor memory. So that she does not forget to feed the dragon on time, each day, right after feeding Grozokryl, she sets a timer that goes off the next day at exactly the moment the dragon must be fed again.

Valka is tired of calculating every day what time to set the timer for. Help her. Write a program that takes the feeding time today and the feeding time tomorrow, and calculates the time to set the timer for.

Input

The first line contains the feeding time today in hours and minutes in the format HH:MM (the time is from 00:00 to 23:59, inclusive). One minute after 23:59 on the first day is 00:00 on the second day.

The second line contains the feeding time tomorrow in the same format.

It is guaranteed that the input contains two correct time records.

Output

Print the time that passes between the two feedings of the dragon, in the same format as the input.

Note that if the hour or minute is a single digit, it must be padded with a leading zero.

Hint

The second test from the statement does not fit the constraints of the first subtask. You do not need to pass the second test from the statement to get points for this subtask.

Examples2

  1. Example 1

    Input
    21:00
    06:00
    
    Expected output
    09:00
    
  2. Example 2

    Input
    12:34
    21:43
    
    Expected output
    33:09