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

public class Main {

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

		while ((line = br.readLine()) != null && !line.isEmpty()) {
			int h, m, s;
			s = Integer.parseInt(line);

			h = s / 3600;
			s %= 3600;
			m = s / 60;
			s %= 60;
			System.out.format("%d:%d:%d\n", h, m, s);
		}
	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {

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

		while ((line = br.readLine()) != null && !line.isEmpty()) {
			int h, m, s;
			s = Integer.parseInt(line);

			h = s / 3600;
			s %= 3600;
			m = s / 60;
			s %= 60;
			System.out.format("%d:%d:%d\n", h, m, s);
		}
	}
} Main public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line = "";

		while ((line = br.readLine()) != null && !line.isEmpty()) {
			int h, m, s;
			s = Integer.parseInt(line);

			h = s / 3600;
			s %= 3600;
			m = s / 60;
			s %= 60;
			System.out.format("%d:%d:%d\n", h, m, s);
		}
	} main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line = "";

		while ((line = br.readLine()) != null && !line.isEmpty()) {
			int h, m, s;
			s = Integer.parseInt(line);

			h = s / 3600;
			s %= 3600;
			m = s / 60;
			s %= 60;
			System.out.format("%d:%d:%d\n", h, m, s);
		}
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String line = ""; line "" while ((line = br.readLine()) != null && !line.isEmpty()) {
			int h, m, s;
			s = Integer.parseInt(line);

			h = s / 3600;
			s %= 3600;
			m = s / 60;
			s %= 60;
			System.out.format("%d:%d:%d\n", h, m, s);
		} (line = br.readLine()) != null && !line.isEmpty() (line = br.readLine()) != null (line = br.readLine()) line br.readLine() br.readLine br null !line.isEmpty() line.isEmpty() line.isEmpty line {
			int h, m, s;
			s = Integer.parseInt(line);

			h = s / 3600;
			s %= 3600;
			m = s / 60;
			s %= 60;
			System.out.format("%d:%d:%d\n", h, m, s);
		} int h h m m s; s s = Integer.parseInt(line) s Integer.parseInt(line) Integer.parseInt Integer line h = s / 3600 h s / 3600 s 3600 s %= 3600 s 3600 m = s / 60 m s / 60 s 60 s %= 60 s 60 System.out.format("%d:%d:%d\n", h, m, s) System.out.format System.out System System.out "%d:%d:%d\n" h m s String[] args args public class Main {

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

		while ((line = br.readLine()) != null && !line.isEmpty()) {
			int h, m, s;
			s = Integer.parseInt(line);

			h = s / 3600;
			s %= 3600;
			m = s / 60;
			s %= 60;
			System.out.format("%d:%d:%d\n", h, m, s);
		}
	}
} public class Main {

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

		while ((line = br.readLine()) != null && !line.isEmpty()) {
			int h, m, s;
			s = Integer.parseInt(line);

			h = s / 3600;
			s %= 3600;
			m = s / 60;
			s %= 60;
			System.out.format("%d:%d:%d\n", h, m, s);
		}
	}
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {

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

		while ((line = br.readLine()) != null && !line.isEmpty()) {
			int h, m, s;
			s = Integer.parseInt(line);

			h = s / 3600;
			s %= 3600;
			m = s / 60;
			s %= 60;
			System.out.format("%d:%d:%d\n", h, m, s);
		}
	}
}