Թաքցված խնդիր
|Այս խնդիրը թաքցված է խմբագրական խրհրդի անդամի կողմից քանի որ կամ այն ոչ ճիշտ լեզվով է գրված,|կամ թեստային տվյալներն են սխալ, կամ խնդրի ձևակերպումը պարզ չէ։|

COCI0015 - NATRIJ

   After an unsuccessful attempt at claiming power peacefully, Borko has decided to tear down Mirko's village hall, which was built for him out of cardboard by his loyal servants.

   For this he will use Mirko's microprocessor (which was stolen from him by Borko's friend Zvonko), a bucket of water and a bag of sodium. He will enter the time of the "explosion" into the microprocessor, and it will drop the sodium in the water after the time is up.

   Borko knows the current time and when he wants the explosion. He is not very fond of arithmetic and Zvonko is currently playing with marbles in his back yard so he can't help him.

   Write a program that calculates the time to the explosion (this is the time Borko will enter into the microprocessor). The time Borko wants is at least one second and at most 24 hours.

Input.

   The first line of input contains the current time in hh:mm:ss format (hours, minutes, seconds). The hours will be between 0 and 23 (inclusive) and the minutes and seconds between 0 and 59.

   The second line contains the time of the explosion in the same format.    

Output.

   Output the desired time on a single line, in the same format as the times in the input.    

Sample tests.

N

stdin

stdout

1

20:00:00
04:00:00

08:00:00

2

12:34:56
14:36:22

02:01:26


Ավելացրեց.Հրանտ Հովհաննիսյան
Ամսաթիվ.2016-05-09
Ժամանակի սահմանափակումը.1s
Ծրագրի տեքստի սահմանափակումը.50000B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Լեզուներ.Բոլորը բացի ASM32 ASM64 GAWK CLPS CLOJURE D ERL FSHARP FORTRAN GOSU HASK ICON ICK JS-MONKEY NEM NIM OBJC-CLANG PICO PIKE PYPY PYPY3 PY_NBC RUST SCM guile CHICKEN SED TCL WHITESPACE
Աղբյուրը.COCI, Contest #5, 2006-2007

© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.