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