import java.util.Scanner;

class Main {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int S = scanner.nextInt();
		System.out.println(S/3600 + ":" + S/60%60 + ":" + S%60);
		scanner.close();
	}
} import java.util.Scanner; Scanner java.util class Main {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int S = scanner.nextInt();
		System.out.println(S/3600 + ":" + S/60%60 + ":" + S%60);
		scanner.close();
	}
} Main public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int S = scanner.nextInt();
		System.out.println(S/3600 + ":" + S/60%60 + ":" + S%60);
		scanner.close();
	} main {
		Scanner scanner = new Scanner(System.in);
		int S = scanner.nextInt();
		System.out.println(S/3600 + ":" + S/60%60 + ":" + S%60);
		scanner.close();
	} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int S = scanner.nextInt(); S scanner.nextInt() scanner.nextInt scanner System.out.println(S/3600 + ":" + S/60%60 + ":" + S%60) System.out.println System.out System System.out S/3600 + ":" + S/60%60 + ":" + S%60 ":" S/60%60 S/3600 + ":" + S/60%60 + ":" + S%60 S/3600 S 3600 ":" S/60%60 S/60 S 60 60 ":" S%60 S 60 scanner.close() scanner.close scanner String[] args args
import java.util.Scanner;

class Main {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int S = scanner.nextInt();
		System.out.println(S/3600 + ":" + S/60%60 + ":" + S%60);
		scanner.close();
	}
}