import java.util.Scanner;

public class Main {
	private void calc(){
		Scanner scanner = new Scanner(System.in);
		int time =scanner.nextInt();
		
			int hour=time/3600;
			int min =(time-(3600*hour))/60;
			int sec =time-(3600*hour+60*min);
			System.out.print(hour +":"+ min + ":"+sec);
			System.out.println("");
	
	}
	
	public static void main(String[] args) {
		Main cubic =new Main();
		cubic.calc();

	}
} import java.util.Scanner; Scanner java.util public class Main {
	private void calc(){
		Scanner scanner = new Scanner(System.in);
		int time =scanner.nextInt();
		
			int hour=time/3600;
			int min =(time-(3600*hour))/60;
			int sec =time-(3600*hour+60*min);
			System.out.print(hour +":"+ min + ":"+sec);
			System.out.println("");
	
	}
	
	public static void main(String[] args) {
		Main cubic =new Main();
		cubic.calc();

	}
} Main private void calc(){
		Scanner scanner = new Scanner(System.in);
		int time =scanner.nextInt();
		
			int hour=time/3600;
			int min =(time-(3600*hour))/60;
			int sec =time-(3600*hour+60*min);
			System.out.print(hour +":"+ min + ":"+sec);
			System.out.println("");
	
	} calc {
		Scanner scanner = new Scanner(System.in);
		int time =scanner.nextInt();
		
			int hour=time/3600;
			int min =(time-(3600*hour))/60;
			int sec =time-(3600*hour+60*min);
			System.out.print(hour +":"+ min + ":"+sec);
			System.out.println("");
	
	} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int time =scanner.nextInt(); time scanner.nextInt() scanner.nextInt scanner int hour=time/3600; hour time/3600 time 3600 int min =(time-(3600*hour))/60; min (time-(3600*hour))/60 (time-(3600*hour)) time (3600*hour) 3600 hour 60 int sec =time-(3600*hour+60*min); sec time-(3600*hour+60*min) time (3600*hour+60*min) 3600*hour 3600 hour 60*min 60 min System.out.print(hour +":"+ min + ":"+sec) System.out.print System.out System System.out hour +":"+ min + ":"+sec ":" min hour +":"+ min + ":"+sec hour ":" min ":" sec System.out.println("") System.out.println System.out System System.out "" public static void main(String[] args) {
		Main cubic =new Main();
		cubic.calc();

	} main {
		Main cubic =new Main();
		cubic.calc();

	} Main cubic =new Main(); cubic new Main() cubic.calc() cubic.calc cubic String[] args args public class Main {
	private void calc(){
		Scanner scanner = new Scanner(System.in);
		int time =scanner.nextInt();
		
			int hour=time/3600;
			int min =(time-(3600*hour))/60;
			int sec =time-(3600*hour+60*min);
			System.out.print(hour +":"+ min + ":"+sec);
			System.out.println("");
	
	}
	
	public static void main(String[] args) {
		Main cubic =new Main();
		cubic.calc();

	}
} public class Main {
	private void calc(){
		Scanner scanner = new Scanner(System.in);
		int time =scanner.nextInt();
		
			int hour=time/3600;
			int min =(time-(3600*hour))/60;
			int sec =time-(3600*hour+60*min);
			System.out.print(hour +":"+ min + ":"+sec);
			System.out.println("");
	
	}
	
	public static void main(String[] args) {
		Main cubic =new Main();
		cubic.calc();

	}
} Main
import java.util.Scanner;

public class Main {
	private void calc(){
		Scanner scanner = new Scanner(System.in);
		int time =scanner.nextInt();
		
			int hour=time/3600;
			int min =(time-(3600*hour))/60;
			int sec =time-(3600*hour+60*min);
			System.out.print(hour +":"+ min + ":"+sec);
			System.out.println("");
	
	}
	
	public static void main(String[] args) {
		Main cubic =new Main();
		cubic.calc();

	}
}