import java.util.Scanner;

public class Main {

	public static Scanner scanner = new Scanner(System.in);

	public static void main(String[] args) {

		int number = input();

		int hour = number / (60 * 60);
		int minute = (number % (60 * 60)) / 60;
		int second = number % 60;

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

		close();

	}

	public static int input() {

		return scanner.nextInt();

	}

	public static void close() {

		if (scanner != null) {

			scanner.close();

		}
	}
} import java.util.Scanner; Scanner java.util public class Main {

	public static Scanner scanner = new Scanner(System.in);

	public static void main(String[] args) {

		int number = input();

		int hour = number / (60 * 60);
		int minute = (number % (60 * 60)) / 60;
		int second = number % 60;

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

		close();

	}

	public static int input() {

		return scanner.nextInt();

	}

	public static void close() {

		if (scanner != null) {

			scanner.close();

		}
	}
} Main public static Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) public static void main(String[] args) {

		int number = input();

		int hour = number / (60 * 60);
		int minute = (number % (60 * 60)) / 60;
		int second = number % 60;

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

		close();

	} main {

		int number = input();

		int hour = number / (60 * 60);
		int minute = (number % (60 * 60)) / 60;
		int second = number % 60;

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

		close();

	} int number = input(); number input() input int hour = number / (60 * 60); hour number / (60 * 60) number (60 * 60) 60 60 int minute = (number % (60 * 60)) / 60; minute (number % (60 * 60)) / 60 (number % (60 * 60)) number (60 * 60) 60 60 60 int second = number % 60; second number % 60 number 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 close() close String[] args args public static int input() {

		return scanner.nextInt();

	} input {

		return scanner.nextInt();

	} return scanner.nextInt(); scanner.nextInt() scanner.nextInt scanner public static void close() {

		if (scanner != null) {

			scanner.close();

		}
	} close {

		if (scanner != null) {

			scanner.close();

		}
	} if (scanner != null) {

			scanner.close();

		} scanner != null scanner null {

			scanner.close();

		} scanner.close() scanner.close scanner public class Main {

	public static Scanner scanner = new Scanner(System.in);

	public static void main(String[] args) {

		int number = input();

		int hour = number / (60 * 60);
		int minute = (number % (60 * 60)) / 60;
		int second = number % 60;

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

		close();

	}

	public static int input() {

		return scanner.nextInt();

	}

	public static void close() {

		if (scanner != null) {

			scanner.close();

		}
	}
} public class Main {

	public static Scanner scanner = new Scanner(System.in);

	public static void main(String[] args) {

		int number = input();

		int hour = number / (60 * 60);
		int minute = (number % (60 * 60)) / 60;
		int second = number % 60;

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

		close();

	}

	public static int input() {

		return scanner.nextInt();

	}

	public static void close() {

		if (scanner != null) {

			scanner.close();

		}
	}
} Main
import java.util.Scanner;

public class Main {

	public static Scanner scanner = new Scanner(System.in);

	public static void main(String[] args) {

		int number = input();

		int hour = number / (60 * 60);
		int minute = (number % (60 * 60)) / 60;
		int second = number % 60;

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

		close();

	}

	public static int input() {

		return scanner.nextInt();

	}

	public static void close() {

		if (scanner != null) {

			scanner.close();

		}
	}
}