import java.util.Scanner;

public class Main {

	static Scanner scan = new Scanner(System.in);
	
	public static void main(String[] args){
		int min = 0, hour = 0;
	//	int sec = Integer.parseInt(args[0]);
		int sec = scan.nextInt();
		if(sec >= 60*60){
			hour = sec / (60 *60);
		}
			sec = sec - hour*60*60;

		if(sec>=60){
			min = sec /60;
		}
		sec = sec - min * 60;
	//	int sec = sec % 60;
		System.out.println(hour + ":" + min +":" + sec);
	}
}
 import java.util.Scanner; Scanner java.util public class Main {

	static Scanner scan = new Scanner(System.in);
	
	public static void main(String[] args){
		int min = 0, hour = 0;
	//	int sec = Integer.parseInt(args[0]);
		int sec = scan.nextInt();
		if(sec >= 60*60){
			hour = sec / (60 *60);
		}
			sec = sec - hour*60*60;

		if(sec>=60){
			min = sec /60;
		}
		sec = sec - min * 60;
	//	int sec = sec % 60;
		System.out.println(hour + ":" + min +":" + sec);
	}
} Main static Scanner scan = new Scanner(System.in); scan new Scanner(System.in) public static void main(String[] args){
		int min = 0, hour = 0;
	//	int sec = Integer.parseInt(args[0]);
		int sec = scan.nextInt();
		if(sec >= 60*60){
			hour = sec / (60 *60);
		}
			sec = sec - hour*60*60;

		if(sec>=60){
			min = sec /60;
		}
		sec = sec - min * 60;
	//	int sec = sec % 60;
		System.out.println(hour + ":" + min +":" + sec);
	} main {
		int min = 0, hour = 0;
	//	int sec = Integer.parseInt(args[0]);
		int sec = scan.nextInt();
		if(sec >= 60*60){
			hour = sec / (60 *60);
		}
			sec = sec - hour*60*60;

		if(sec>=60){
			min = sec /60;
		}
		sec = sec - min * 60;
	//	int sec = sec % 60;
		System.out.println(hour + ":" + min +":" + sec);
	} int min = 0 min 0 hour = 0; hour 0 int sec = scan.nextInt(); sec scan.nextInt() scan.nextInt scan if(sec >= 60*60){
			hour = sec / (60 *60);
		} sec >= 60*60 sec 60*60 60 60 {
			hour = sec / (60 *60);
		} hour = sec / (60 *60) hour sec / (60 *60) sec (60 *60) 60 60 sec = sec - hour*60*60 sec sec - hour*60*60 sec hour*60*60 hour*60*60 hour 60 60 if(sec>=60){
			min = sec /60;
		} sec>=60 sec 60 {
			min = sec /60;
		} min = sec /60 min sec /60 sec 60 sec = sec - min * 60 sec sec - min * 60 sec min * 60 min 60 System.out.println(hour + ":" + min +":" + sec) System.out.println System.out System System.out hour + ":" + min +":" + sec ":" min hour + ":" + min +":" + sec hour ":" min ":" sec String[] args args public class Main {

	static Scanner scan = new Scanner(System.in);
	
	public static void main(String[] args){
		int min = 0, hour = 0;
	//	int sec = Integer.parseInt(args[0]);
		int sec = scan.nextInt();
		if(sec >= 60*60){
			hour = sec / (60 *60);
		}
			sec = sec - hour*60*60;

		if(sec>=60){
			min = sec /60;
		}
		sec = sec - min * 60;
	//	int sec = sec % 60;
		System.out.println(hour + ":" + min +":" + sec);
	}
} public class Main {

	static Scanner scan = new Scanner(System.in);
	
	public static void main(String[] args){
		int min = 0, hour = 0;
	//	int sec = Integer.parseInt(args[0]);
		int sec = scan.nextInt();
		if(sec >= 60*60){
			hour = sec / (60 *60);
		}
			sec = sec - hour*60*60;

		if(sec>=60){
			min = sec /60;
		}
		sec = sec - min * 60;
	//	int sec = sec % 60;
		System.out.println(hour + ":" + min +":" + sec);
	}
} Main
import java.util.Scanner;

public class Main {

	static Scanner scan = new Scanner(System.in);
	
	public static void main(String[] args){
		int min = 0, hour = 0;
	//	int sec = Integer.parseInt(args[0]);
		int sec = scan.nextInt();
		if(sec >= 60*60){
			hour = sec / (60 *60);
		}
			sec = sec - hour*60*60;

		if(sec>=60){
			min = sec /60;
		}
		sec = sec - min * 60;
	//	int sec = sec % 60;
		System.out.println(hour + ":" + min +":" + sec);
	}
}

