import java.io.*;
class Main
{
public static void main(String args[]) throws IOException
{

		BufferedReader br=
			new BufferedReader( new InputStreamReader(System.in));

			String str=br.readLine();
		
int S =Integer.parseInt(str);
int h=S/3600;
int m=S%3600/60;
int s=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));

			String str=br.readLine();
		
int S =Integer.parseInt(str);
int h=S/3600;
int m=S%3600/60;
int s=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));

			String str=br.readLine();
		
int S =Integer.parseInt(str);
int h=S/3600;
int m=S%3600/60;
int s=S%60;


System.out.println(h+":"+m+":"+s);} main {

		BufferedReader br=
			new BufferedReader( new InputStreamReader(System.in));

			String str=br.readLine();
		
int S =Integer.parseInt(str);
int h=S/3600;
int m=S%3600/60;
int s=S%60;


System.out.println(h+":"+m+":"+s);} BufferedReader br=
			new BufferedReader( new InputStreamReader(System.in)); br new BufferedReader( new InputStreamReader(System.in)) String str=br.readLine(); str br.readLine() br.readLine br int S =Integer.parseInt(str); S Integer.parseInt(str) Integer.parseInt Integer str int h=S/3600; h S/3600 S 3600 int m=S%3600/60; m S%3600/60 S%3600 S 3600 60 int s=S%60; s 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));

			String str=br.readLine();
		
int S =Integer.parseInt(str);
int h=S/3600;
int m=S%3600/60;
int s=S%60;


System.out.println(h+":"+m+":"+s);}}