import java.util.Scanner;

public class Main {
	static Scanner sc = new Scanner(System.in);
	static int ip;
	public static void main(String[] args) {
		ip=sc.nextInt();
		int h = ip/(60*60);int tmp = ip%(60*60);
		int m = tmp/60;
		int s=tmp%60;
		
		System.out.println(h+":"+m+":"+s);
		
	}

} import java.util.Scanner; Scanner java.util public class Main {
	static Scanner sc = new Scanner(System.in);
	static int ip;
	public static void main(String[] args) {
		ip=sc.nextInt();
		int h = ip/(60*60);int tmp = ip%(60*60);
		int m = tmp/60;
		int s=tmp%60;
		
		System.out.println(h+":"+m+":"+s);
		
	}

} Main static Scanner sc = new Scanner(System.in); sc new Scanner(System.in) static int ip; ip public static void main(String[] args) {
		ip=sc.nextInt();
		int h = ip/(60*60);int tmp = ip%(60*60);
		int m = tmp/60;
		int s=tmp%60;
		
		System.out.println(h+":"+m+":"+s);
		
	} main {
		ip=sc.nextInt();
		int h = ip/(60*60);int tmp = ip%(60*60);
		int m = tmp/60;
		int s=tmp%60;
		
		System.out.println(h+":"+m+":"+s);
		
	} ip=sc.nextInt() ip sc.nextInt() sc.nextInt sc int h = ip/(60*60); h ip/(60*60) ip (60*60) 60 60 int tmp = ip%(60*60); tmp ip%(60*60) ip (60*60) 60 60 int m = tmp/60; m tmp/60 tmp 60 int s=tmp%60; s tmp%60 tmp 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 {
	static Scanner sc = new Scanner(System.in);
	static int ip;
	public static void main(String[] args) {
		ip=sc.nextInt();
		int h = ip/(60*60);int tmp = ip%(60*60);
		int m = tmp/60;
		int s=tmp%60;
		
		System.out.println(h+":"+m+":"+s);
		
	}

} public class Main {
	static Scanner sc = new Scanner(System.in);
	static int ip;
	public static void main(String[] args) {
		ip=sc.nextInt();
		int h = ip/(60*60);int tmp = ip%(60*60);
		int m = tmp/60;
		int s=tmp%60;
		
		System.out.println(h+":"+m+":"+s);
		
	}

} Main
import java.util.Scanner;

public class Main {
	static Scanner sc = new Scanner(System.in);
	static int ip;
	public static void main(String[] args) {
		ip=sc.nextInt();
		int h = ip/(60*60);int tmp = ip%(60*60);
		int m = tmp/60;
		int s=tmp%60;
		
		System.out.println(h+":"+m+":"+s);
		
	}

}