import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

class Main {

	public static void main(String[] args) throws IOException {
		BufferedReader reader = new BufferedReader(new InputStreamReader(
				System.in));
		int second = Integer.parseInt(reader.readLine());
		if (second >= 0 && second < 86400) {
			int hh = second / 3600;
			int mm = (second % 3600) / 60;
			int ss = second % 60;
			System.out.println(hh + ":" + mm + ":" + ss);
		}
	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io class Main {

	public static void main(String[] args) throws IOException {
		BufferedReader reader = new BufferedReader(new InputStreamReader(
				System.in));
		int second = Integer.parseInt(reader.readLine());
		if (second >= 0 && second < 86400) {
			int hh = second / 3600;
			int mm = (second % 3600) / 60;
			int ss = second % 60;
			System.out.println(hh + ":" + mm + ":" + ss);
		}
	}
} Main public static void main(String[] args) throws IOException {
		BufferedReader reader = new BufferedReader(new InputStreamReader(
				System.in));
		int second = Integer.parseInt(reader.readLine());
		if (second >= 0 && second < 86400) {
			int hh = second / 3600;
			int mm = (second % 3600) / 60;
			int ss = second % 60;
			System.out.println(hh + ":" + mm + ":" + ss);
		}
	} main {
		BufferedReader reader = new BufferedReader(new InputStreamReader(
				System.in));
		int second = Integer.parseInt(reader.readLine());
		if (second >= 0 && second < 86400) {
			int hh = second / 3600;
			int mm = (second % 3600) / 60;
			int ss = second % 60;
			System.out.println(hh + ":" + mm + ":" + ss);
		}
	} BufferedReader reader = new BufferedReader(new InputStreamReader(
				System.in)); reader new BufferedReader(new InputStreamReader(
				System.in)) int second = Integer.parseInt(reader.readLine()); second Integer.parseInt(reader.readLine()) Integer.parseInt Integer reader.readLine() reader.readLine reader if (second >= 0 && second < 86400) {
			int hh = second / 3600;
			int mm = (second % 3600) / 60;
			int ss = second % 60;
			System.out.println(hh + ":" + mm + ":" + ss);
		} second >= 0 && second < 86400 second >= 0 second 0 second < 86400 second 86400 {
			int hh = second / 3600;
			int mm = (second % 3600) / 60;
			int ss = second % 60;
			System.out.println(hh + ":" + mm + ":" + ss);
		} int hh = second / 3600; hh second / 3600 second 3600 int mm = (second % 3600) / 60; mm (second % 3600) / 60 (second % 3600) second 3600 60 int ss = second % 60; ss second % 60 second 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
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

class Main {

	public static void main(String[] args) throws IOException {
		BufferedReader reader = new BufferedReader(new InputStreamReader(
				System.in));
		int second = Integer.parseInt(reader.readLine());
		if (second >= 0 && second < 86400) {
			int hh = second / 3600;
			int mm = (second % 3600) / 60;
			int ss = second % 60;
			System.out.println(hh + ":" + mm + ":" + ss);
		}
	}
}