import java.util.Scanner;
class Main{
	
    Scanner sc = new Scanner(System.in);
	int S;
	int h,m,s;
	void goo(){
		S = sc.nextInt();
		h=S/3600;
		m=S%3600/60;
		s=S%60;
		System.out.println(h+":"+m+":"+s);
	}
	public static void main(String[]agrs){
		new Main().goo();
	}
}
	 import java.util.Scanner; Scanner java.util class Main{
	
    Scanner sc = new Scanner(System.in);
	int S;
	int h,m,s;
	void goo(){
		S = sc.nextInt();
		h=S/3600;
		m=S%3600/60;
		s=S%60;
		System.out.println(h+":"+m+":"+s);
	}
	public static void main(String[]agrs){
		new Main().goo();
	}
} Main Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int S; S int h h m m s; s void goo(){
		S = sc.nextInt();
		h=S/3600;
		m=S%3600/60;
		s=S%60;
		System.out.println(h+":"+m+":"+s);
	} goo {
		S = sc.nextInt();
		h=S/3600;
		m=S%3600/60;
		s=S%60;
		System.out.println(h+":"+m+":"+s);
	} S = sc.nextInt() S sc.nextInt() sc.nextInt sc h=S/3600 h S/3600 S 3600 m=S%3600/60 m S%3600/60 S%3600 S 3600 60 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 public static void main(String[]agrs){
		new Main().goo();
	} main {
		new Main().goo();
	} new Main().goo() new Main().goo new Main() String[]agrs agrs
import java.util.Scanner;
class Main{
	
    Scanner sc = new Scanner(System.in);
	int S;
	int h,m,s;
	void goo(){
		S = sc.nextInt();
		h=S/3600;
		m=S%3600/60;
		s=S%60;
		System.out.println(h+":"+m+":"+s);
	}
	public static void main(String[]agrs){
		new Main().goo();
	}
}
	