 
class Main{
	public static void main(String[] args) {
		int InputSecond = new java.util.Scanner(System.in).nextInt();
		int hours;
		int minutes;
		int seconds;
		
		hours = InputSecond / 3600;
		minutes = (InputSecond % 3600) / 60;
		seconds = InputSecond % 60;
		System.out.println(hours + ":" + minutes + ":" + seconds);
	}
} class Main{
	public static void main(String[] args) {
		int InputSecond = new java.util.Scanner(System.in).nextInt();
		int hours;
		int minutes;
		int seconds;
		
		hours = InputSecond / 3600;
		minutes = (InputSecond % 3600) / 60;
		seconds = InputSecond % 60;
		System.out.println(hours + ":" + minutes + ":" + seconds);
	}
} Main public static void main(String[] args) {
		int InputSecond = new java.util.Scanner(System.in).nextInt();
		int hours;
		int minutes;
		int seconds;
		
		hours = InputSecond / 3600;
		minutes = (InputSecond % 3600) / 60;
		seconds = InputSecond % 60;
		System.out.println(hours + ":" + minutes + ":" + seconds);
	} main {
		int InputSecond = new java.util.Scanner(System.in).nextInt();
		int hours;
		int minutes;
		int seconds;
		
		hours = InputSecond / 3600;
		minutes = (InputSecond % 3600) / 60;
		seconds = InputSecond % 60;
		System.out.println(hours + ":" + minutes + ":" + seconds);
	} int InputSecond = new java.util.Scanner(System.in).nextInt(); InputSecond new java.util.Scanner(System.in).nextInt() new java.util.Scanner(System.in).nextInt new java.util.Scanner(System.in) int hours; hours int minutes; minutes int seconds; seconds hours = InputSecond / 3600 hours InputSecond / 3600 InputSecond 3600 minutes = (InputSecond % 3600) / 60 minutes (InputSecond % 3600) / 60 (InputSecond % 3600) InputSecond 3600 60 seconds = InputSecond % 60 seconds InputSecond % 60 InputSecond 60 System.out.println(hours + ":" + minutes + ":" + seconds) System.out.println System.out System System.out hours + ":" + minutes + ":" + seconds ":" minutes hours + ":" + minutes + ":" + seconds hours ":" minutes ":" seconds String[] args args
 
class Main{
	public static void main(String[] args) {
		int InputSecond = new java.util.Scanner(System.in).nextInt();
		int hours;
		int minutes;
		int seconds;
		
		hours = InputSecond / 3600;
		minutes = (InputSecond % 3600) / 60;
		seconds = InputSecond % 60;
		System.out.println(hours + ":" + minutes + ":" + seconds);
	}
}