import java.io.*;

public class Main {
	public static void main(String[] args) throws IOException {
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		String inputed = new String(in.readLine());

		//String value[] = inputed.split("[\\s]+");
		int intInputed = Integer.parseInt(inputed);

		int minute = intInputed / 60;
		int hours =  minute / 60;

		System.out.println(hours + ":" + (minute % 60) + ":" + (intInputed % 60));

	}
} import java.io.*; io.* java public class Main {
	public static void main(String[] args) throws IOException {
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		String inputed = new String(in.readLine());

		//String value[] = inputed.split("[\\s]+");
		int intInputed = Integer.parseInt(inputed);

		int minute = intInputed / 60;
		int hours =  minute / 60;

		System.out.println(hours + ":" + (minute % 60) + ":" + (intInputed % 60));

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

		//String value[] = inputed.split("[\\s]+");
		int intInputed = Integer.parseInt(inputed);

		int minute = intInputed / 60;
		int hours =  minute / 60;

		System.out.println(hours + ":" + (minute % 60) + ":" + (intInputed % 60));

	} main {
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		String inputed = new String(in.readLine());

		//String value[] = inputed.split("[\\s]+");
		int intInputed = Integer.parseInt(inputed);

		int minute = intInputed / 60;
		int hours =  minute / 60;

		System.out.println(hours + ":" + (minute % 60) + ":" + (intInputed % 60));

	} BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); in new BufferedReader(new InputStreamReader(System.in)) String inputed = new String(in.readLine()); inputed new String(in.readLine()) int intInputed = Integer.parseInt(inputed); intInputed Integer.parseInt(inputed) Integer.parseInt Integer inputed int minute = intInputed / 60; minute intInputed / 60 intInputed 60 int hours =  minute / 60; hours minute / 60 minute 60 System.out.println(hours + ":" + (minute % 60) + ":" + (intInputed % 60)) System.out.println System.out System System.out hours + ":" + (minute % 60) + ":" + (intInputed % 60) ":" (minute % 60) hours + ":" + (minute % 60) + ":" + (intInputed % 60) hours ":" (minute % 60) minute 60 ":" (intInputed % 60) intInputed 60 String[] args args public class Main {
	public static void main(String[] args) throws IOException {
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		String inputed = new String(in.readLine());

		//String value[] = inputed.split("[\\s]+");
		int intInputed = Integer.parseInt(inputed);

		int minute = intInputed / 60;
		int hours =  minute / 60;

		System.out.println(hours + ":" + (minute % 60) + ":" + (intInputed % 60));

	}
} public class Main {
	public static void main(String[] args) throws IOException {
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		String inputed = new String(in.readLine());

		//String value[] = inputed.split("[\\s]+");
		int intInputed = Integer.parseInt(inputed);

		int minute = intInputed / 60;
		int hours =  minute / 60;

		System.out.println(hours + ":" + (minute % 60) + ":" + (intInputed % 60));

	}
} Main
import java.io.*;

public class Main {
	public static void main(String[] args) throws IOException {
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		String inputed = new String(in.readLine());

		//String value[] = inputed.split("[\\s]+");
		int intInputed = Integer.parseInt(inputed);

		int minute = intInputed / 60;
		int hours =  minute / 60;

		System.out.println(hours + ":" + (minute % 60) + ":" + (intInputed % 60));

	}
}