import java.io.*;

class Main {
	public static void main(String[] args) throws IOException {
		BufferedReader br =
			new BufferedReader(new InputStreamReader(System.in));

			String line = br.readLine();
			int a = Integer.parseInt(line);

			int hour = a / 3600;
			int minute = (a - 3600 * hour) / 60;
			int s = a - 3600 * hour - 60 * minute;

			System.out.println(hour + ":" + minute + ":" + s);
	}
} import java.io.*; io.* java class Main {
	public static void main(String[] args) throws IOException {
		BufferedReader br =
			new BufferedReader(new InputStreamReader(System.in));

			String line = br.readLine();
			int a = Integer.parseInt(line);

			int hour = a / 3600;
			int minute = (a - 3600 * hour) / 60;
			int s = a - 3600 * hour - 60 * minute;

			System.out.println(hour + ":" + minute + ":" + s);
	}
} Main public static void main(String[] args) throws IOException {
		BufferedReader br =
			new BufferedReader(new InputStreamReader(System.in));

			String line = br.readLine();
			int a = Integer.parseInt(line);

			int hour = a / 3600;
			int minute = (a - 3600 * hour) / 60;
			int s = a - 3600 * hour - 60 * minute;

			System.out.println(hour + ":" + minute + ":" + s);
	} main {
		BufferedReader br =
			new BufferedReader(new InputStreamReader(System.in));

			String line = br.readLine();
			int a = Integer.parseInt(line);

			int hour = a / 3600;
			int minute = (a - 3600 * hour) / 60;
			int s = a - 3600 * hour - 60 * minute;

			System.out.println(hour + ":" + minute + ":" + s);
	} BufferedReader br =
			new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String line = br.readLine(); line br.readLine() br.readLine br int a = Integer.parseInt(line); a Integer.parseInt(line) Integer.parseInt Integer line int hour = a / 3600; hour a / 3600 a 3600 int minute = (a - 3600 * hour) / 60; minute (a - 3600 * hour) / 60 (a - 3600 * hour) a 3600 * hour 3600 hour 60 int s = a - 3600 * hour - 60 * minute; s a - 3600 * hour - 60 * minute a - 3600 * hour - 60 * minute a 3600 * hour 3600 hour 60 * minute 60 minute System.out.println(hour + ":" + minute + ":" + s) System.out.println System.out System System.out hour + ":" + minute + ":" + s ":" minute hour + ":" + minute + ":" + s hour ":" minute ":" s String[] args args
import java.io.*;

class Main {
	public static void main(String[] args) throws IOException {
		BufferedReader br =
			new BufferedReader(new InputStreamReader(System.in));

			String line = br.readLine();
			int a = Integer.parseInt(line);

			int hour = a / 3600;
			int minute = (a - 3600 * hour) / 60;
			int s = a - 3600 * hour - 60 * minute;

			System.out.println(hour + ":" + minute + ":" + s);
	}
}