import java.util.Scanner;

class Main {
    public void kami() {
        Scanner sc = new Scanner(System.in);
		int S = sc.nextInt();
			
			int h = S / 3600;
			int m = (S - h * 3600) / 60;
			int s = S - (h * 3600) - (m * 60);
			
			System.out.println( h + ":" + m + ":" + s);
		
    }
	public static void main(String[] args) {
        new Main().kami();

	}

} import java.util.Scanner; Scanner java.util class Main {
    public void kami() {
        Scanner sc = new Scanner(System.in);
		int S = sc.nextInt();
			
			int h = S / 3600;
			int m = (S - h * 3600) / 60;
			int s = S - (h * 3600) - (m * 60);
			
			System.out.println( h + ":" + m + ":" + s);
		
    }
	public static void main(String[] args) {
        new Main().kami();

	}

} Main public void kami() {
        Scanner sc = new Scanner(System.in);
		int S = sc.nextInt();
			
			int h = S / 3600;
			int m = (S - h * 3600) / 60;
			int s = S - (h * 3600) - (m * 60);
			
			System.out.println( h + ":" + m + ":" + s);
		
    } kami {
        Scanner sc = new Scanner(System.in);
		int S = sc.nextInt();
			
			int h = S / 3600;
			int m = (S - h * 3600) / 60;
			int s = S - (h * 3600) - (m * 60);
			
			System.out.println( h + ":" + m + ":" + s);
		
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int S = sc.nextInt(); S sc.nextInt() sc.nextInt sc int h = S / 3600; h S / 3600 S 3600 int m = (S - h * 3600) / 60; m (S - h * 3600) / 60 (S - h * 3600) S h * 3600 h 3600 60 int s = S - (h * 3600) - (m * 60); s S - (h * 3600) - (m * 60) S - (h * 3600) - (m * 60) S (h * 3600) h 3600 (m * 60) m 60 System.out.println( h + ":" + m + ":" + s) System.out.println System.out System System.out h + ":" + m + ":" + s ":" m h + ":" + m + ":" + s h ":" m ":" s public static void main(String[] args) {
        new Main().kami();

	} main {
        new Main().kami();

	} new Main().kami() new Main().kami new Main() String[] args args
import java.util.Scanner;

class Main {
    public void kami() {
        Scanner sc = new Scanner(System.in);
		int S = sc.nextInt();
			
			int h = S / 3600;
			int m = (S - h * 3600) / 60;
			int s = S - (h * 3600) - (m * 60);
			
			System.out.println( h + ":" + m + ":" + s);
		
    }
	public static void main(String[] args) {
        new Main().kami();

	}

}