import java.util.InputMismatchException;
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		try {
			Scanner scan = new Scanner(System.in);
			int sec = scan.nextInt();
			int h = sec / 3600;
			int m = (sec / 60) % 60;
			int s = sec % 60;
			System.out.println(h + ":" + m + ":" + s);
			scan.close();
		} catch (InputMismatchException e) {
			System.out.println("Maybe Inputdata contains some characters");
		}
	}
} import java.util.InputMismatchException; InputMismatchException java.util import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		try {
			Scanner scan = new Scanner(System.in);
			int sec = scan.nextInt();
			int h = sec / 3600;
			int m = (sec / 60) % 60;
			int s = sec % 60;
			System.out.println(h + ":" + m + ":" + s);
			scan.close();
		} catch (InputMismatchException e) {
			System.out.println("Maybe Inputdata contains some characters");
		}
	}
} Main public static void main(String[] args) {
		try {
			Scanner scan = new Scanner(System.in);
			int sec = scan.nextInt();
			int h = sec / 3600;
			int m = (sec / 60) % 60;
			int s = sec % 60;
			System.out.println(h + ":" + m + ":" + s);
			scan.close();
		} catch (InputMismatchException e) {
			System.out.println("Maybe Inputdata contains some characters");
		}
	} main {
		try {
			Scanner scan = new Scanner(System.in);
			int sec = scan.nextInt();
			int h = sec / 3600;
			int m = (sec / 60) % 60;
			int s = sec % 60;
			System.out.println(h + ":" + m + ":" + s);
			scan.close();
		} catch (InputMismatchException e) {
			System.out.println("Maybe Inputdata contains some characters");
		}
	} try {
			Scanner scan = new Scanner(System.in);
			int sec = scan.nextInt();
			int h = sec / 3600;
			int m = (sec / 60) % 60;
			int s = sec % 60;
			System.out.println(h + ":" + m + ":" + s);
			scan.close();
		} catch (InputMismatchException e) {
			System.out.println("Maybe Inputdata contains some characters");
		} catch (InputMismatchException e) {
			System.out.println("Maybe Inputdata contains some characters");
		} InputMismatchException e {
			System.out.println("Maybe Inputdata contains some characters");
		} System.out.println("Maybe Inputdata contains some characters") System.out.println System.out System System.out "Maybe Inputdata contains some characters" {
			Scanner scan = new Scanner(System.in);
			int sec = scan.nextInt();
			int h = sec / 3600;
			int m = (sec / 60) % 60;
			int s = sec % 60;
			System.out.println(h + ":" + m + ":" + s);
			scan.close();
		} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int sec = scan.nextInt(); sec scan.nextInt() scan.nextInt scan int h = sec / 3600; h sec / 3600 sec 3600 int m = (sec / 60) % 60; m (sec / 60) % 60 (sec / 60) sec 60 60 int s = sec % 60; s sec % 60 sec 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 scan.close() scan.close scan String[] args args public class Main {
	public static void main(String[] args) {
		try {
			Scanner scan = new Scanner(System.in);
			int sec = scan.nextInt();
			int h = sec / 3600;
			int m = (sec / 60) % 60;
			int s = sec % 60;
			System.out.println(h + ":" + m + ":" + s);
			scan.close();
		} catch (InputMismatchException e) {
			System.out.println("Maybe Inputdata contains some characters");
		}
	}
} public class Main {
	public static void main(String[] args) {
		try {
			Scanner scan = new Scanner(System.in);
			int sec = scan.nextInt();
			int h = sec / 3600;
			int m = (sec / 60) % 60;
			int s = sec % 60;
			System.out.println(h + ":" + m + ":" + s);
			scan.close();
		} catch (InputMismatchException e) {
			System.out.println("Maybe Inputdata contains some characters");
		}
	}
} Main
import java.util.InputMismatchException;
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		try {
			Scanner scan = new Scanner(System.in);
			int sec = scan.nextInt();
			int h = sec / 3600;
			int m = (sec / 60) % 60;
			int s = sec % 60;
			System.out.println(h + ":" + m + ":" + s);
			scan.close();
		} catch (InputMismatchException e) {
			System.out.println("Maybe Inputdata contains some characters");
		}
	}
}