public class Main { 
	public static void main(String[] args){
		int inSeconds = new java.util.Scanner(System.in).nextInt();
		int outHours = inSeconds / (60*60);
		inSeconds = inSeconds % (60*60);
		int outMinutes = inSeconds / 60;
		inSeconds = inSeconds % 60;
		int outSeconds = inSeconds;
		System.out.println(outHours + ":" +outMinutes + ":" + outSeconds);
	}
} public class Main { 
	public static void main(String[] args){
		int inSeconds = new java.util.Scanner(System.in).nextInt();
		int outHours = inSeconds / (60*60);
		inSeconds = inSeconds % (60*60);
		int outMinutes = inSeconds / 60;
		inSeconds = inSeconds % 60;
		int outSeconds = inSeconds;
		System.out.println(outHours + ":" +outMinutes + ":" + outSeconds);
	}
} Main public static void main(String[] args){
		int inSeconds = new java.util.Scanner(System.in).nextInt();
		int outHours = inSeconds / (60*60);
		inSeconds = inSeconds % (60*60);
		int outMinutes = inSeconds / 60;
		inSeconds = inSeconds % 60;
		int outSeconds = inSeconds;
		System.out.println(outHours + ":" +outMinutes + ":" + outSeconds);
	} main {
		int inSeconds = new java.util.Scanner(System.in).nextInt();
		int outHours = inSeconds / (60*60);
		inSeconds = inSeconds % (60*60);
		int outMinutes = inSeconds / 60;
		inSeconds = inSeconds % 60;
		int outSeconds = inSeconds;
		System.out.println(outHours + ":" +outMinutes + ":" + outSeconds);
	} int inSeconds = new java.util.Scanner(System.in).nextInt(); inSeconds new java.util.Scanner(System.in).nextInt() new java.util.Scanner(System.in).nextInt new java.util.Scanner(System.in) int outHours = inSeconds / (60*60); outHours inSeconds / (60*60) inSeconds (60*60) 60 60 inSeconds = inSeconds % (60*60) inSeconds inSeconds % (60*60) inSeconds (60*60) 60 60 int outMinutes = inSeconds / 60; outMinutes inSeconds / 60 inSeconds 60 inSeconds = inSeconds % 60 inSeconds inSeconds % 60 inSeconds 60 int outSeconds = inSeconds; outSeconds inSeconds System.out.println(outHours + ":" +outMinutes + ":" + outSeconds) System.out.println System.out System System.out outHours + ":" +outMinutes + ":" + outSeconds ":" outMinutes outHours + ":" +outMinutes + ":" + outSeconds outHours ":" outMinutes ":" outSeconds String[] args args public class Main { 
	public static void main(String[] args){
		int inSeconds = new java.util.Scanner(System.in).nextInt();
		int outHours = inSeconds / (60*60);
		inSeconds = inSeconds % (60*60);
		int outMinutes = inSeconds / 60;
		inSeconds = inSeconds % 60;
		int outSeconds = inSeconds;
		System.out.println(outHours + ":" +outMinutes + ":" + outSeconds);
	}
} public class Main { 
	public static void main(String[] args){
		int inSeconds = new java.util.Scanner(System.in).nextInt();
		int outHours = inSeconds / (60*60);
		inSeconds = inSeconds % (60*60);
		int outMinutes = inSeconds / 60;
		inSeconds = inSeconds % 60;
		int outSeconds = inSeconds;
		System.out.println(outHours + ":" +outMinutes + ":" + outSeconds);
	}
} Main
public class Main { 
	public static void main(String[] args){
		int inSeconds = new java.util.Scanner(System.in).nextInt();
		int outHours = inSeconds / (60*60);
		inSeconds = inSeconds % (60*60);
		int outMinutes = inSeconds / 60;
		inSeconds = inSeconds % 60;
		int outSeconds = inSeconds;
		System.out.println(outHours + ":" +outMinutes + ":" + outSeconds);
	}
}