3045: Unpredictable Accidents

时间限制:1000 ms 内存限制:128 MB
上传者:
提交:3 通过:2

题目描述

Due to unpredictable accidents, $The \ Third \ Chang'an \ University \ ACM-ICPC \ Programming \ Competition$ will be postponed for $x$ minutes. We have known that the competition should have started at $12:00$, and the duration of it is $5$ hours. As a participant, you want know when is the ending time.

Please print the ending time in the form of $hh:mm$, $hh$ is the hours with range of $00$ to $24$ and the $mm$ is the minutes with range of $00$ to $59$.

输入格式

The first line contains an integer number $T$, the number of test cases.

$i^{th}$ of each next $T$ lines contains an integer $x(1 \leq x \leq 300)$, the number of minutes competition will postpone.

输出格式

For each test case print the the ending time in the form of $hh:mm$.

输入样例 复制

3
5
70
120

输出样例 复制

12:05
13:10
14:00