/
Time Limit: 2 sec / Memory Limit: 1024 MiB
問題文
高橋君の持っている時計は本当の時刻より X 分進んでいます。ただし、 X<0 なら |X| 分遅れているということを意味します。
高橋君の時計が 12:00 を指している時、本当の時刻が何時何分か求めてください。
制約
- X は -10 以上 10 以下の整数
入力
入力は以下の形式で標準入力から与えられる。
X
出力
本当の時刻を x 時 y 分としたときに、x 、: 、y をこの順に出力せよ。ただし、 y が 10 未満である場合は y の先頭に 0 を付けて出力せよ。
入力例 1
5
出力例 1
11:55
高橋君の持っている時計は本当の時刻より 5 分進んでいます。よって、本当の時刻は 11:55 です。
入力例 2
0
出力例 2
12:00
高橋君の持っている時計は正しい時刻を示しています。
入力例 3
-3
出力例 3
12:03
高橋君の持っている時計は本当の時刻より 3 分遅れています。
Problem Statement
Takahashi's clock is X minutes ahead of the actual time. Here, X<0 implies it is |X| minutes behind.
When his clock shows twelve o'clock, what is the actual time?
Constraints
- X is an integer between -10 and 10, inclusive.
Input
The input is given from Standard Input in the following format:
X
Output
If the actual time is y minutes past x, print x, :, and y in this order. If y is strictly less than 10, prepend 0 when printing y.
Sample Input 1
5
Sample Output 1
11:55
Takahashi's clock is five minutes ahead of the actual time. Thus, the actual time is 11:55.
Sample Input 2
0
Sample Output 2
12:00
Takahashi's clock shows the actual time.
Sample Input 3
-3
Sample Output 3
12:03
Takahashi's clock is three minutes behind the actual time.