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));
		int num = Integer.parseInt(br.readLine());

		int h = num / 3600;
		num = num - h * 3600; // 残りの秒数

		int m = num / 60;
		int s = num - m * 60; // 残りの秒数

		System.out.println(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));
		int num = Integer.parseInt(br.readLine());

		int h = num / 3600;
		num = num - h * 3600; // 残りの秒数

		int m = num / 60;
		int s = num - m * 60; // 残りの秒数

		System.out.println(h + ":" + m + ":" + s);

	}

} Main public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int num = Integer.parseInt(br.readLine());

		int h = num / 3600;
		num = num - h * 3600; // 残りの秒数

		int m = num / 60;
		int s = num - m * 60; // 残りの秒数

		System.out.println(h + ":" + m + ":" + s);

	} main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int num = Integer.parseInt(br.readLine());

		int h = num / 3600;
		num = num - h * 3600; // 残りの秒数

		int m = num / 60;
		int s = num - m * 60; // 残りの秒数

		System.out.println(h + ":" + m + ":" + s);

	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) int num = Integer.parseInt(br.readLine()); num Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br int h = num / 3600; h num / 3600 num 3600 num = num - h * 3600 num num - h * 3600 num h * 3600 h 3600 int m = num / 60; m num / 60 num 60 int s = num - m * 60; s num - m * 60 num m * 60 m 60 System.out.println(h + ":" + m + ":" + s) System.out.println System.out System System.out h + ":" + m + ":" + s ":" m h + ":" + m + ":" + s 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));
		int num = Integer.parseInt(br.readLine());

		int h = num / 3600;
		num = num - h * 3600; // 残りの秒数

		int m = num / 60;
		int s = num - m * 60; // 残りの秒数

		System.out.println(h + ":" + m + ":" + s);

	}

} public class Main {

	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int num = Integer.parseInt(br.readLine());

		int h = num / 3600;
		num = num - h * 3600; // 残りの秒数

		int m = num / 60;
		int s = num - m * 60; // 残りの秒数

		System.out.println(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));
		int num = Integer.parseInt(br.readLine());

		int h = num / 3600;
		num = num - h * 3600; // 残りの秒数

		int m = num / 60;
		int s = num - m * 60; // 残りの秒数

		System.out.println(h + ":" + m + ":" + s);

	}

}