102580: [AtCoder]ABC258 A - When?

Memory Limit:256 MB Time Limit:2 S
Judge Style:Text Compare Creator:
Submit:0 Solved:0

Description

Score : $100$ points

Problem Statement

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

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

Constraints

  • $K$ is an integer between $0$ and $100$ (inclusive).

Input

Input is given from Standard Input in the following format:

$K$

Output

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


Sample Input 1

63

Sample Output 1

22:03

$63$ 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

Input

题意翻译

- 给定一个整数 $K$,请使用 `HH:MM` 的形式输出 $21:00$ 之后 $K$ 分钟的时间。 - 其中 `HH` 是 $24$ 小时制的小时,`MM` 是分钟(如果只有一位需要补充前导零)。 - 具体可参考样例理解。 - 数据范围:$1\le K< 100$。 - Translated by Pitham(脾土蛤蟆)。

Output

得分:100分

问题描述

AtCoder 初级比赛通常在 JST 21:00 开始,持续 $100$ 分钟。

你将得到一个在 $0$ 到 $100$(含)之间的整数 $K$。请以 HH:MM 格式打印出 21:00 后的 $K$ 分钟时间,其中 HH 表示 24 小时制的小时数,MM 表示分钟数。如果小时数或分钟数只有一个数字,请在前面加一个 $0$ 来表示为一个两位数。

限制条件

  • $K$ 是一个在 $0$ 到 $100$(含)之间的整数。

输入

输入将从标准输入给出以下格式:

$K$

输出

以问题描述中指定的格式打印出 21:00 后的 $K$ 分钟时间。


样例输入 1

63

样例输出 1

22:03

在 21:00 后 $63$ 分钟,将是 22:03,所以应打印出 22:03

以下输出将被判定为错误:

  • 10:03
  • 22:3

样例输入 2

45

样例输出 2

21:45

样例输入 3

100

样例输出 3

22:40

加入题单

算法标签: