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 inputSecond = Integer.parseInt(br.readLine());
		int hour = inputSecond/3600;
		int minute = (inputSecond/60)%60;
		int second = inputSecond%60;

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

	}

} 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 inputSecond = Integer.parseInt(br.readLine());
		int hour = inputSecond/3600;
		int minute = (inputSecond/60)%60;
		int second = inputSecond%60;

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

	}

} Main public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int inputSecond = Integer.parseInt(br.readLine());
		int hour = inputSecond/3600;
		int minute = (inputSecond/60)%60;
		int second = inputSecond%60;

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

	} main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int inputSecond = Integer.parseInt(br.readLine());
		int hour = inputSecond/3600;
		int minute = (inputSecond/60)%60;
		int second = inputSecond%60;

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

	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) int inputSecond = Integer.parseInt(br.readLine()); inputSecond Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br int hour = inputSecond/3600; hour inputSecond/3600 inputSecond 3600 int minute = (inputSecond/60)%60; minute (inputSecond/60)%60 (inputSecond/60) inputSecond 60 60 int second = inputSecond%60; second inputSecond%60 inputSecond 60 System.out.println(hour + ":" + minute + ":" + second) System.out.println System.out System System.out hour + ":" + minute + ":" + second ":" minute hour + ":" + minute + ":" + second hour ":" minute ":" second String[] args args public class Main {

	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int inputSecond = Integer.parseInt(br.readLine());
		int hour = inputSecond/3600;
		int minute = (inputSecond/60)%60;
		int second = inputSecond%60;

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

	}

} public class Main {

	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int inputSecond = Integer.parseInt(br.readLine());
		int hour = inputSecond/3600;
		int minute = (inputSecond/60)%60;
		int second = inputSecond%60;

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

	}

} 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 inputSecond = Integer.parseInt(br.readLine());
		int hour = inputSecond/3600;
		int minute = (inputSecond/60)%60;
		int second = inputSecond%60;

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

	}

}