import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;
class Main
{
    public static void main(String[] args) throws IOException {
	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	int s = Integer.parseInt(br.readLine());
	int sec = s % 60;
	int t = s / 60;
	int min = t % 60;
	int hour = t / 60;

	System.out.println(hour + ":" + min + ":" + sec);
    }

} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io import java.io.IOException; IOException java.io class Main
{
    public static void main(String[] args) throws IOException {
	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	int s = Integer.parseInt(br.readLine());
	int sec = s % 60;
	int t = s / 60;
	int min = t % 60;
	int hour = t / 60;

	System.out.println(hour + ":" + min + ":" + sec);
    }

} Main public static void main(String[] args) throws IOException {
	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	int s = Integer.parseInt(br.readLine());
	int sec = s % 60;
	int t = s / 60;
	int min = t % 60;
	int hour = t / 60;

	System.out.println(hour + ":" + min + ":" + sec);
    } main {
	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	int s = Integer.parseInt(br.readLine());
	int sec = s % 60;
	int t = s / 60;
	int min = t % 60;
	int hour = t / 60;

	System.out.println(hour + ":" + min + ":" + sec);
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) int s = Integer.parseInt(br.readLine()); s Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br int sec = s % 60; sec s % 60 s 60 int t = s / 60; t s / 60 s 60 int min = t % 60; min t % 60 t 60 int hour = t / 60; hour t / 60 t 60 System.out.println(hour + ":" + min + ":" + sec) System.out.println System.out System System.out hour + ":" + min + ":" + sec ":" min hour + ":" + min + ":" + sec hour ":" min ":" sec String[] args args
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;
class Main
{
    public static void main(String[] args) throws IOException {
	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	int s = Integer.parseInt(br.readLine());
	int sec = s % 60;
	int t = s / 60;
	int min = t % 60;
	int hour = t / 60;

	System.out.println(hour + ":" + min + ":" + sec);
    }

}