#abc258a. A - When?

A - When?

Score : 100100 points

问题描述

AtCoder新手比赛通常在JST时间21:00开始,并持续100分钟。

你将得到一个整数KK,其取值范围为00100100(包含两端点)。

请按照HH:MM的格式打印出从21:00开始经过KK分钟的时间,其中HH表示24小时制下的小时数,而MM表示分钟数。如果小时数或分钟数仅有一位数,则在前面添加一个00,以两位整数的形式表示。

以上为通义千问 qwen-max 翻译,仅供参考。

Problem Statement

AtCoder Beginner Contest usually starts at 21:00 JST and lasts for 100100 minutes.

You are given an integer KK between 00 and 100100 (inclusive). Print the time KK minutes after 21:00 in the HH:MM format, where HH denotes the hour on the 2424-hour clock and MM denotes the minute. If the hour or the minute has just one digit, append a 00 to the beginning to represent it as a 22-digit integer.

Constraints

  • KK is an integer between 00 and 100100 (inclusive).

Input

Input is given from Standard Input in the following format:

KK

Output

Print the time KK minutes after 21:00 in the format specified in the Problem Statement.

Sample Input 1

63

Sample Output 1

22:03

6363 minutes after 21:00, it will be 22:03, so 22:03 should be printed.

The following outputs would be judged incorrect:

  • 10:03
  • 22:3

Sample Input 2

45

Sample Output 2

21:45

Sample Input 3

100

Sample Output 3

22:40

update @ 2024/3/10 10:56:51