import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.regex.Pattern;
import java.util.regex.Matcher;

public class Main {
	public static void main(String args[]) throws Exception {

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		int input = Integer.parseInt(br.readLine());

		int hour = input / 3600;
		int minutes = (input - hour * 3600) / 60;
		int seconds = input - (hour * 3600) - (minutes * 60);

		System.out.println(hour + ":" + minutes + ":" + seconds);

	}

} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.regex.Pattern; Pattern java.util.regex import java.util.regex.Matcher; Matcher java.util.regex public class Main {
	public static void main(String args[]) throws Exception {

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		int input = Integer.parseInt(br.readLine());

		int hour = input / 3600;
		int minutes = (input - hour * 3600) / 60;
		int seconds = input - (hour * 3600) - (minutes * 60);

		System.out.println(hour + ":" + minutes + ":" + seconds);

	}

} Main public static void main(String args[]) throws Exception {

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		int input = Integer.parseInt(br.readLine());

		int hour = input / 3600;
		int minutes = (input - hour * 3600) / 60;
		int seconds = input - (hour * 3600) - (minutes * 60);

		System.out.println(hour + ":" + minutes + ":" + seconds);

	} main {

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		int input = Integer.parseInt(br.readLine());

		int hour = input / 3600;
		int minutes = (input - hour * 3600) / 60;
		int seconds = input - (hour * 3600) - (minutes * 60);

		System.out.println(hour + ":" + minutes + ":" + seconds);

	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) int input = Integer.parseInt(br.readLine()); input Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br int hour = input / 3600; hour input / 3600 input 3600 int minutes = (input - hour * 3600) / 60; minutes (input - hour * 3600) / 60 (input - hour * 3600) input hour * 3600 hour 3600 60 int seconds = input - (hour * 3600) - (minutes * 60); seconds input - (hour * 3600) - (minutes * 60) input - (hour * 3600) - (minutes * 60) input (hour * 3600) hour 3600 (minutes * 60) minutes 60 System.out.println(hour + ":" + minutes + ":" + seconds) System.out.println System.out System System.out hour + ":" + minutes + ":" + seconds ":" minutes hour + ":" + minutes + ":" + seconds hour ":" minutes ":" seconds String args[] args public class Main {
	public static void main(String args[]) throws Exception {

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		int input = Integer.parseInt(br.readLine());

		int hour = input / 3600;
		int minutes = (input - hour * 3600) / 60;
		int seconds = input - (hour * 3600) - (minutes * 60);

		System.out.println(hour + ":" + minutes + ":" + seconds);

	}

} public class Main {
	public static void main(String args[]) throws Exception {

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		int input = Integer.parseInt(br.readLine());

		int hour = input / 3600;
		int minutes = (input - hour * 3600) / 60;
		int seconds = input - (hour * 3600) - (minutes * 60);

		System.out.println(hour + ":" + minutes + ":" + seconds);

	}

} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.regex.Pattern;
import java.util.regex.Matcher;

public class Main {
	public static void main(String args[]) throws Exception {

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		int input = Integer.parseInt(br.readLine());

		int hour = input / 3600;
		int minutes = (input - hour * 3600) / 60;
		int seconds = input - (hour * 3600) - (minutes * 60);

		System.out.println(hour + ":" + minutes + ":" + seconds);

	}

}