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