import java.io.*;
public class Main {
		public static void main(String[] arg) throws IOException {
			InputStreamReader is = new InputStreamReader(System.in); 
	        BufferedReader br = new BufferedReader(is);
			String str = br.readLine();
			int num = Integer.parseInt(str);
			System.out.println(num/60/60+":"+num/60%60+":"+num%60);
	}

} import java.io.*; io.* java public class Main {
		public static void main(String[] arg) throws IOException {
			InputStreamReader is = new InputStreamReader(System.in); 
	        BufferedReader br = new BufferedReader(is);
			String str = br.readLine();
			int num = Integer.parseInt(str);
			System.out.println(num/60/60+":"+num/60%60+":"+num%60);
	}

} Main public static void main(String[] arg) throws IOException {
			InputStreamReader is = new InputStreamReader(System.in); 
	        BufferedReader br = new BufferedReader(is);
			String str = br.readLine();
			int num = Integer.parseInt(str);
			System.out.println(num/60/60+":"+num/60%60+":"+num%60);
	} main {
			InputStreamReader is = new InputStreamReader(System.in); 
	        BufferedReader br = new BufferedReader(is);
			String str = br.readLine();
			int num = Integer.parseInt(str);
			System.out.println(num/60/60+":"+num/60%60+":"+num%60);
	} InputStreamReader is = new InputStreamReader(System.in); is new InputStreamReader(System.in) BufferedReader br = new BufferedReader(is); br new BufferedReader(is) String str = br.readLine(); str br.readLine() br.readLine br int num = Integer.parseInt(str); num Integer.parseInt(str) Integer.parseInt Integer str System.out.println(num/60/60+":"+num/60%60+":"+num%60) System.out.println System.out System System.out num/60/60+":"+num/60%60+":"+num%60 ":" num/60%60 num/60/60+":"+num/60%60+":"+num%60 num/60/60 num/60/60 num 60 60 ":" num/60%60 num/60 num 60 60 ":" num%60 num 60 String[] arg arg public class Main {
		public static void main(String[] arg) throws IOException {
			InputStreamReader is = new InputStreamReader(System.in); 
	        BufferedReader br = new BufferedReader(is);
			String str = br.readLine();
			int num = Integer.parseInt(str);
			System.out.println(num/60/60+":"+num/60%60+":"+num%60);
	}

} public class Main {
		public static void main(String[] arg) throws IOException {
			InputStreamReader is = new InputStreamReader(System.in); 
	        BufferedReader br = new BufferedReader(is);
			String str = br.readLine();
			int num = Integer.parseInt(str);
			System.out.println(num/60/60+":"+num/60%60+":"+num%60);
	}

} Main
import java.io.*;
public class Main {
		public static void main(String[] arg) throws IOException {
			InputStreamReader is = new InputStreamReader(System.in); 
	        BufferedReader br = new BufferedReader(is);
			String str = br.readLine();
			int num = Integer.parseInt(str);
			System.out.println(num/60/60+":"+num/60%60+":"+num%60);
	}

}