Time Zone

베이징 시간(UTC+8)을 주어진 UTC 오프셋의 시간으로 바꿔 hh:mm 형식으로 출력한다.

쉬움3수학구현문자열아직 제출이 없습니다시간 제한1초메모리 제한256 MB

문제

Chiaki often participates in international competitive programming contests. The time zone becomes a big problem.

Given a time in Beijing time (UTC +8), Chiaki would like to know the time in another time zone ss.

입력

There are multiple test cases. The first line of input contains an integer TT (1T1051 \le T \le 10^5), indicating the number of test cases. For each test case:

The first line contains two integers aa, bb (0a23,0b590 \le a \le 23, 0 \le b \le 59) and a string ss in the format of UTC+X, UTC-X, UTC+X.Y, or UTC-X.Y (0X,X.Y140 \le X, X.Y \le 14).

출력

For each test, output the time in the format of hh:mmhh:mm (24-hour clock).