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

class Main {

	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		Integer time = Integer.parseInt(br.readLine());
		Integer hour = time / (60 * 60);
		Integer minute = (time - (hour * 60 * 60)) / 60;
		Integer ss = (time - (hour * 60 * 60)) % 60;
		System.out.println(hour + ":" + minute + ":" + 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 br = new BufferedReader(new InputStreamReader(System.in));
		Integer time = Integer.parseInt(br.readLine());
		Integer hour = time / (60 * 60);
		Integer minute = (time - (hour * 60 * 60)) / 60;
		Integer ss = (time - (hour * 60 * 60)) % 60;
		System.out.println(hour + ":" + minute + ":" + ss);
	}

} Main public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		Integer time = Integer.parseInt(br.readLine());
		Integer hour = time / (60 * 60);
		Integer minute = (time - (hour * 60 * 60)) / 60;
		Integer ss = (time - (hour * 60 * 60)) % 60;
		System.out.println(hour + ":" + minute + ":" + ss);
	} main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		Integer time = Integer.parseInt(br.readLine());
		Integer hour = time / (60 * 60);
		Integer minute = (time - (hour * 60 * 60)) / 60;
		Integer ss = (time - (hour * 60 * 60)) % 60;
		System.out.println(hour + ":" + minute + ":" + ss);
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) Integer time = Integer.parseInt(br.readLine()); time Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br Integer hour = time / (60 * 60); hour time / (60 * 60) time (60 * 60) 60 60 Integer minute = (time - (hour * 60 * 60)) / 60; minute (time - (hour * 60 * 60)) / 60 (time - (hour * 60 * 60)) time (hour * 60 * 60) hour * 60 * 60 hour 60 60 60 Integer ss = (time - (hour * 60 * 60)) % 60; ss (time - (hour * 60 * 60)) % 60 (time - (hour * 60 * 60)) time (hour * 60 * 60) hour * 60 * 60 hour 60 60 60 System.out.println(hour + ":" + minute + ":" + ss) System.out.println System.out System System.out hour + ":" + minute + ":" + ss ":" minute hour + ":" + minute + ":" + ss hour ":" minute ":" 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 br = new BufferedReader(new InputStreamReader(System.in));
		Integer time = Integer.parseInt(br.readLine());
		Integer hour = time / (60 * 60);
		Integer minute = (time - (hour * 60 * 60)) / 60;
		Integer ss = (time - (hour * 60 * 60)) % 60;
		System.out.println(hour + ":" + minute + ":" + ss);
	}

}