import java.util.Scanner;
public class Main {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int x = scanner.nextInt();
		String s = String.format("%1$d:%2$d:%3$d", x / 3600, (x % 3600) / 60, x % 60);
		System.out.println(s);
	}

} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int x = scanner.nextInt();
		String s = String.format("%1$d:%2$d:%3$d", x / 3600, (x % 3600) / 60, x % 60);
		System.out.println(s);
	}

} Main public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int x = scanner.nextInt();
		String s = String.format("%1$d:%2$d:%3$d", x / 3600, (x % 3600) / 60, x % 60);
		System.out.println(s);
	} main {
		Scanner scanner = new Scanner(System.in);
		int x = scanner.nextInt();
		String s = String.format("%1$d:%2$d:%3$d", x / 3600, (x % 3600) / 60, x % 60);
		System.out.println(s);
	} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int x = scanner.nextInt(); x scanner.nextInt() scanner.nextInt scanner String s = String.format("%1$d:%2$d:%3$d", x / 3600, (x % 3600) / 60, x % 60); s String.format("%1$d:%2$d:%3$d", x / 3600, (x % 3600) / 60, x % 60) String.format String "%1$d:%2$d:%3$d" x / 3600 x 3600 (x % 3600) / 60 (x % 3600) x 3600 60 x % 60 x 60 System.out.println(s) System.out.println System.out System System.out s String[] args args public class Main {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int x = scanner.nextInt();
		String s = String.format("%1$d:%2$d:%3$d", x / 3600, (x % 3600) / 60, x % 60);
		System.out.println(s);
	}

} public class Main {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int x = scanner.nextInt();
		String s = String.format("%1$d:%2$d:%3$d", x / 3600, (x % 3600) / 60, x % 60);
		System.out.println(s);
	}

} Main
import java.util.Scanner;
public class Main {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int x = scanner.nextInt();
		String s = String.format("%1$d:%2$d:%3$d", x / 3600, (x % 3600) / 60, x % 60);
		System.out.println(s);
	}

}