import java.io.*;

class Main{
    public static void main(String args[]) throws IOException{

	int byo=0;
	int h=0;
	int m=0;
	int s=0;

	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	String str = br.readLine();

	byo=Integer.parseInt(str);
	h=byo/3600;
	byo=byo-(h*3600);
	m=byo/60;
	byo=byo-(m*60);
	s=byo;
	System.out.println(h+":"+m+":"+s);
    }
} import java.io.*; io.* java class Main{
    public static void main(String args[]) throws IOException{

	int byo=0;
	int h=0;
	int m=0;
	int s=0;

	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	String str = br.readLine();

	byo=Integer.parseInt(str);
	h=byo/3600;
	byo=byo-(h*3600);
	m=byo/60;
	byo=byo-(m*60);
	s=byo;
	System.out.println(h+":"+m+":"+s);
    }
} Main public static void main(String args[]) throws IOException{

	int byo=0;
	int h=0;
	int m=0;
	int s=0;

	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	String str = br.readLine();

	byo=Integer.parseInt(str);
	h=byo/3600;
	byo=byo-(h*3600);
	m=byo/60;
	byo=byo-(m*60);
	s=byo;
	System.out.println(h+":"+m+":"+s);
    } main {

	int byo=0;
	int h=0;
	int m=0;
	int s=0;

	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	String str = br.readLine();

	byo=Integer.parseInt(str);
	h=byo/3600;
	byo=byo-(h*3600);
	m=byo/60;
	byo=byo-(m*60);
	s=byo;
	System.out.println(h+":"+m+":"+s);
    } int byo=0; byo 0 int h=0; h 0 int m=0; m 0 int s=0; s 0 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 byo=Integer.parseInt(str) byo Integer.parseInt(str) Integer.parseInt Integer str h=byo/3600 h byo/3600 byo 3600 byo=byo-(h*3600) byo byo-(h*3600) byo (h*3600) h 3600 m=byo/60 m byo/60 byo 60 byo=byo-(m*60) byo byo-(m*60) byo (m*60) m 60 s=byo s byo 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{

	int byo=0;
	int h=0;
	int m=0;
	int s=0;

	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	String str = br.readLine();

	byo=Integer.parseInt(str);
	h=byo/3600;
	byo=byo-(h*3600);
	m=byo/60;
	byo=byo-(m*60);
	s=byo;
	System.out.println(h+":"+m+":"+s);
    }
}