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