import java.util.Scanner;

public class Main {

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

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

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

public class Main {

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