C Microwave Mishap
题号:NC223924
时间限制:C/C++/Rust/Pascal 2秒,其他语言4秒
空间限制:C/C++/Rust/Pascal 256 M,其他语言512 M
64bit IO Format: %lld

题目描述

Donald is very hungry. He grabs a TV dinner, puts it in the microwave, and enters 02:15 to cook it for 2 minutes and 15 seconds. Unknown to Donald, microwave takes these values as hours and minutes, i.e., microwave takes 02:15 as 2 hours and 15 minutes (not 2 minutes and 15 seconds). We need to tell Donald how much extra (i.e., the additional time) his food will be cooking. That is, we need to tell Donald that his food will cook 2 hours, 12 minutes, and 45 seconds more (longer) than what he was expecting!

 

The Problem:

 

Given the initial time in the form ofMM:SS, where the input is actually taken asHH:MM, determine how much extra the food will be in the microwave. Provide this info in the form ofHH:MM:SS.

输入描述:

Input will consist of a single line in the form ofMM:SS, representing what Donald has entered.MMandSSwill be in the range of 00 and 59 (inclusive), but they both will not be 00 at the same time, i.e., the total time will be positive, i.e., input will not be 00:00.

输出描述:

Output should contain a single line in the form ofHH:MM:SS, indicating the additional time the food will cook in the microwave. Note that you need to print two digits for each part. Also note thatMMandSSmust be in the range of 00 to 59.

示例1

输入

复制
05:00

输出

复制
04:55:00
示例2

输入

复制
13:37

输出

复制
13:23:23
示例3

输入

复制
00:10

输出

复制
00:09:50