import java.io.*;

public class Main {

	public static void main(String[] args) throws IOException {
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		int intIn = new Integer(in.readLine());
		if(intIn < 0 || intIn > 86400) {
			return;
		}
		int h = intIn / 3600;
		int m = (intIn - h * 3600) / 60;
		int s = intIn - (h * 3600 + m * 60);
		System.out.println(h + ":" + m + ":" + s);

	}

}
 import java.io.*; io.* java public class Main {

	public static void main(String[] args) throws IOException {
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		int intIn = new Integer(in.readLine());
		if(intIn < 0 || intIn > 86400) {
			return;
		}
		int h = intIn / 3600;
		int m = (intIn - h * 3600) / 60;
		int s = intIn - (h * 3600 + m * 60);
		System.out.println(h + ":" + m + ":" + s);

	}

} Main public static void main(String[] args) throws IOException {
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		int intIn = new Integer(in.readLine());
		if(intIn < 0 || intIn > 86400) {
			return;
		}
		int h = intIn / 3600;
		int m = (intIn - h * 3600) / 60;
		int s = intIn - (h * 3600 + m * 60);
		System.out.println(h + ":" + m + ":" + s);

	} main {
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		int intIn = new Integer(in.readLine());
		if(intIn < 0 || intIn > 86400) {
			return;
		}
		int h = intIn / 3600;
		int m = (intIn - h * 3600) / 60;
		int s = intIn - (h * 3600 + m * 60);
		System.out.println(h + ":" + m + ":" + s);

	} BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); in new BufferedReader(new InputStreamReader(System.in)) int intIn = new Integer(in.readLine()); intIn new Integer(in.readLine()) if(intIn < 0 || intIn > 86400) {
			return;
		} intIn < 0 || intIn > 86400 intIn < 0 intIn 0 intIn > 86400 intIn 86400 {
			return;
		} return; int h = intIn / 3600; h intIn / 3600 intIn 3600 int m = (intIn - h * 3600) / 60; m (intIn - h * 3600) / 60 (intIn - h * 3600) intIn h * 3600 h 3600 60 int s = intIn - (h * 3600 + m * 60); s intIn - (h * 3600 + m * 60) intIn (h * 3600 + m * 60) h * 3600 h 3600 m * 60 m 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) throws IOException {
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		int intIn = new Integer(in.readLine());
		if(intIn < 0 || intIn > 86400) {
			return;
		}
		int h = intIn / 3600;
		int m = (intIn - h * 3600) / 60;
		int s = intIn - (h * 3600 + m * 60);
		System.out.println(h + ":" + m + ":" + s);

	}

} public class Main {

	public static void main(String[] args) throws IOException {
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		int intIn = new Integer(in.readLine());
		if(intIn < 0 || intIn > 86400) {
			return;
		}
		int h = intIn / 3600;
		int m = (intIn - h * 3600) / 60;
		int s = intIn - (h * 3600 + m * 60);
		System.out.println(h + ":" + m + ":" + s);

	}

} Main
import java.io.*;

public class Main {

	public static void main(String[] args) throws IOException {
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		int intIn = new Integer(in.readLine());
		if(intIn < 0 || intIn > 86400) {
			return;
		}
		int h = intIn / 3600;
		int m = (intIn - h * 3600) / 60;
		int s = intIn - (h * 3600 + m * 60);
		System.out.println(h + ":" + m + ":" + s);

	}

}

