This page is still under construction.

Parts of this page are still being built. What you see may change.

Microwave Mishap

Time limit1sMemory limit1024 MB

Summary
Given an MM:SS entry that the microwave reads as HH:MM, print the extra cooking time as HH:MM:SS.
Level

Easy1 of 10

Topics
Implementation, Math
Solved
No attempts yet

Problem

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, the microwave takes these values as hours and minutes, so it reads 02:15 as 2 hours and 15 minutes (not 2 minutes and 15 seconds). We need to tell Donald how much extra time his food will spend cooking. That is, we need to tell Donald that his food will cook 2 hours, 12 minutes, and 45 seconds longer than he expected!

Input

A single line in the form MM:SS, which is what Donald entered. The microwave reads it as HH:MM. MM and SS are each in the range 00 to 59 (inclusive). They are not both 00, so the input is never 00:00.

Output

A single line in the form HH:MM:SS with the additional cooking time. Print two digits for each part. MM and SS must be in the range 00 to 59.

Examples3

  1. Example 1

    Input
    05:00
    
    Expected output
    04:55:00
    
  2. Example 2

    Input
    13:37
    
    Expected output
    13:23:23
    
  3. Example 3

    Input
    00:10
    
    Expected output
    00:09:50