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