import java.util.Scanner;

public class Main {
	public static void main(String[] args) {

		Scanner scanner = new Scanner(System.in);

		int sec = scanner.nextInt();

		// ??????
		int h = sec / 3600;

		// ???
		int m = (sec - (3600 * h)) / 60;

		// ?§?
		int s = sec - (3600 * h) - (60 * m);

		System.out.println(h + ":" + m + ":" + s);
	}

} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {

		Scanner scanner = new Scanner(System.in);

		int sec = scanner.nextInt();

		// ??????
		int h = sec / 3600;

		// ???
		int m = (sec - (3600 * h)) / 60;

		// ?§?
		int s = sec - (3600 * h) - (60 * m);

		System.out.println(h + ":" + m + ":" + s);
	}

} Main public static void main(String[] args) {

		Scanner scanner = new Scanner(System.in);

		int sec = scanner.nextInt();

		// ??????
		int h = sec / 3600;

		// ???
		int m = (sec - (3600 * h)) / 60;

		// ?§?
		int s = sec - (3600 * h) - (60 * m);

		System.out.println(h + ":" + m + ":" + s);
	} main {

		Scanner scanner = new Scanner(System.in);

		int sec = scanner.nextInt();

		// ??????
		int h = sec / 3600;

		// ???
		int m = (sec - (3600 * h)) / 60;

		// ?§?
		int s = sec - (3600 * h) - (60 * m);

		System.out.println(h + ":" + m + ":" + s);
	} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int sec = scanner.nextInt(); sec scanner.nextInt() scanner.nextInt scanner int h = sec / 3600; h sec / 3600 sec 3600 int m = (sec - (3600 * h)) / 60; m (sec - (3600 * h)) / 60 (sec - (3600 * h)) sec (3600 * h) 3600 h 60 int s = sec - (3600 * h) - (60 * m); s sec - (3600 * h) - (60 * m) sec - (3600 * h) - (60 * m) sec (3600 * h) 3600 h (60 * m) 60 m 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) {

		Scanner scanner = new Scanner(System.in);

		int sec = scanner.nextInt();

		// ??????
		int h = sec / 3600;

		// ???
		int m = (sec - (3600 * h)) / 60;

		// ?§?
		int s = sec - (3600 * h) - (60 * m);

		System.out.println(h + ":" + m + ":" + s);
	}

} public class Main {
	public static void main(String[] args) {

		Scanner scanner = new Scanner(System.in);

		int sec = scanner.nextInt();

		// ??????
		int h = sec / 3600;

		// ???
		int m = (sec - (3600 * h)) / 60;

		// ?§?
		int s = sec - (3600 * h) - (60 * m);

		System.out.println(h + ":" + m + ":" + s);
	}

} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {

		Scanner scanner = new Scanner(System.in);

		int sec = scanner.nextInt();

		// ??????
		int h = sec / 3600;

		// ???
		int m = (sec - (3600 * h)) / 60;

		// ?§?
		int s = sec - (3600 * h) - (60 * m);

		System.out.println(h + ":" + m + ":" + s);
	}

}