import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		try {
			int sec = sc.nextInt();
			int hh = sec / 3600;
			int mm = sec % 3600 / 60;
			int ss = sec % 3600 % 60;
			System.out.println(hh + ":" + mm + ":" + ss);
		} finally {
			sc.close();
		}
	}
} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		try {
			int sec = sc.nextInt();
			int hh = sec / 3600;
			int mm = sec % 3600 / 60;
			int ss = sec % 3600 % 60;
			System.out.println(hh + ":" + mm + ":" + ss);
		} finally {
			sc.close();
		}
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		try {
			int sec = sc.nextInt();
			int hh = sec / 3600;
			int mm = sec % 3600 / 60;
			int ss = sec % 3600 % 60;
			System.out.println(hh + ":" + mm + ":" + ss);
		} finally {
			sc.close();
		}
	} main {
		Scanner sc = new Scanner(System.in);
		try {
			int sec = sc.nextInt();
			int hh = sec / 3600;
			int mm = sec % 3600 / 60;
			int ss = sec % 3600 % 60;
			System.out.println(hh + ":" + mm + ":" + ss);
		} finally {
			sc.close();
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) try {
			int sec = sc.nextInt();
			int hh = sec / 3600;
			int mm = sec % 3600 / 60;
			int ss = sec % 3600 % 60;
			System.out.println(hh + ":" + mm + ":" + ss);
		} finally {
			sc.close();
		} {
			sc.close();
		} sc.close() sc.close sc {
			int sec = sc.nextInt();
			int hh = sec / 3600;
			int mm = sec % 3600 / 60;
			int ss = sec % 3600 % 60;
			System.out.println(hh + ":" + mm + ":" + ss);
		} int sec = sc.nextInt(); sec sc.nextInt() sc.nextInt sc int hh = sec / 3600; hh sec / 3600 sec 3600 int mm = sec % 3600 / 60; mm sec % 3600 / 60 sec % 3600 sec 3600 60 int ss = sec % 3600 % 60; ss sec % 3600 % 60 sec % 3600 % 60 sec 3600 60 System.out.println(hh + ":" + mm + ":" + ss) System.out.println System.out System System.out hh + ":" + mm + ":" + ss ":" mm hh + ":" + mm + ":" + ss hh ":" mm ":" ss String[] args args public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		try {
			int sec = sc.nextInt();
			int hh = sec / 3600;
			int mm = sec % 3600 / 60;
			int ss = sec % 3600 % 60;
			System.out.println(hh + ":" + mm + ":" + ss);
		} finally {
			sc.close();
		}
	}
} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		try {
			int sec = sc.nextInt();
			int hh = sec / 3600;
			int mm = sec % 3600 / 60;
			int ss = sec % 3600 % 60;
			System.out.println(hh + ":" + mm + ":" + ss);
		} finally {
			sc.close();
		}
	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		try {
			int sec = sc.nextInt();
			int hh = sec / 3600;
			int mm = sec % 3600 / 60;
			int ss = sec % 3600 % 60;
			System.out.println(hh + ":" + mm + ":" + ss);
		} finally {
			sc.close();
		}
	}
}