
import java.util.Scanner;

class Main {
    public void cubic() {
        Scanner sc = new Scanner(System.in);
        int arg = sc.nextInt();

        int i=0;
        int h=0;
        for (i = arg; i >= 3600; h++) {
            i -= 3600;
        }
   //     System.out.println("i="+i);

        int m = 0;
        for (; i >= 60; m++) {
            i -= 60;
        }
                                        
        System.out.println(h+":"+m+":"+i);
    }
    
    public static void main(String[] args){
    new Main().cubic();
    }
} import java.util.Scanner; Scanner java.util class Main {
    public void cubic() {
        Scanner sc = new Scanner(System.in);
        int arg = sc.nextInt();

        int i=0;
        int h=0;
        for (i = arg; i >= 3600; h++) {
            i -= 3600;
        }
   //     System.out.println("i="+i);

        int m = 0;
        for (; i >= 60; m++) {
            i -= 60;
        }
                                        
        System.out.println(h+":"+m+":"+i);
    }
    
    public static void main(String[] args){
    new Main().cubic();
    }
} Main public void cubic() {
        Scanner sc = new Scanner(System.in);
        int arg = sc.nextInt();

        int i=0;
        int h=0;
        for (i = arg; i >= 3600; h++) {
            i -= 3600;
        }
   //     System.out.println("i="+i);

        int m = 0;
        for (; i >= 60; m++) {
            i -= 60;
        }
                                        
        System.out.println(h+":"+m+":"+i);
    } cubic {
        Scanner sc = new Scanner(System.in);
        int arg = sc.nextInt();

        int i=0;
        int h=0;
        for (i = arg; i >= 3600; h++) {
            i -= 3600;
        }
   //     System.out.println("i="+i);

        int m = 0;
        for (; i >= 60; m++) {
            i -= 60;
        }
                                        
        System.out.println(h+":"+m+":"+i);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int arg = sc.nextInt(); arg sc.nextInt() sc.nextInt sc int i=0; i 0 int h=0; h 0 for (i = arg; i >= 3600; h++) {
            i -= 3600;
        } i = arg; i = arg i arg i >= 3600 i 3600 h++ h++ h {
            i -= 3600;
        } {
            i -= 3600;
        } i -= 3600 i 3600 int m = 0; m 0 for (; i >= 60; m++) {
            i -= 60;
        } ; i >= 60 i 60 m++ m++ m {
            i -= 60;
        } {
            i -= 60;
        } i -= 60 i 60 System.out.println(h+":"+m+":"+i) System.out.println System.out System System.out h+":"+m+":"+i ":" m h+":"+m+":"+i h ":" m ":" i public static void main(String[] args){
    new Main().cubic();
    } main {
    new Main().cubic();
    } new Main().cubic() new Main().cubic new Main() String[] args args

import java.util.Scanner;

class Main {
    public void cubic() {
        Scanner sc = new Scanner(System.in);
        int arg = sc.nextInt();

        int i=0;
        int h=0;
        for (i = arg; i >= 3600; h++) {
            i -= 3600;
        }
   //     System.out.println("i="+i);

        int m = 0;
        for (; i >= 60; m++) {
            i -= 60;
        }
                                        
        System.out.println(h+":"+m+":"+i);
    }
    
    public static void main(String[] args){
    new Main().cubic();
    }
}