P25469 [AtCoder] [ABC012B] Bath Time
入门
题目描述

Problem Description

Takahashi has a habit of counting the number of seconds he spends in the bathtub.

Today, Takahashi counted up to $ N $ seconds in the bathtub.

However, he finds it difficult to understand in seconds, so he wants to convert it to the format of hours, minutes, and seconds.

Given the number of seconds $ N $, convert it to the format $ hh:mm:ss $.

Input Format

The input is given from the standard input in the following format:

$ N $

  • The first line contains an integer $N\ (0\ ≦\ N\ ≦\ 86399)$, representing the number of seconds Takahashi spent in the bathtub.

Output Format

Output the time Takahashi spent in the bathtub in the format $ hh:mm:ss $, on a single line. Ensure a newline at the end of the output.

Sample Input and Output

Sample Input #1

3661

Sample Output #1

01:01:01

Sample Input #2

86399

Sample Output #2

23:59:59

Notes/Hints

Sample Explanation 1

The time Takahashi spent in the bathtub is $ 1 $ hour $ 1 $ minute $ 1 $ second.

Sample Explanation 2

Takahashi will not spend more than $ 24 $ hours in the bathtub.

输入格式

见题面 Input 部分

输出格式

见题面 Output 部分

样例输入
3661
样例输出
01:01:01