import 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 h = s /3600;
	s %= 3600;
	int m = s / 60;
	s %= 60;
	System.out.println(h+":"+m+":"+s);
    }
} import java.io.*; io.* java 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 h = s /3600;
	s %= 3600;
	int m = s / 60;
	s %= 60;
	System.out.println(h+":"+m+":"+s);
    }
} Main public static void main(String[] args) throws IOException
    {
	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	int s = Integer.parseInt(br.readLine());
	int h = s /3600;
	s %= 3600;
	int m = s / 60;
	s %= 60;
	System.out.println(h+":"+m+":"+s);
    } main {
	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	int s = Integer.parseInt(br.readLine());
	int h = s /3600;
	s %= 3600;
	int m = s / 60;
	s %= 60;
	System.out.println(h+":"+m+":"+s);
    } 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 h = s /3600; h s /3600 s 3600 s %= 3600 s 3600 int m = s / 60; m s / 60 s 60 s %= 60 s 60 System.out.println(h+":"+m+":"+s) System.out.println System.out System System.out h+":"+m+":"+s ":" m h+":"+m+":"+s h ":" m ":" s String[] args args
import 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 h = s /3600;
	s %= 3600;
	int m = s / 60;
	s %= 60;
	System.out.println(h+":"+m+":"+s);
    }
}