class Main{
    
    public static void main(String[] args){
        java.util.Scanner in = new java.util.Scanner(System.in);
        int t = in.nextInt();
        System.out.println(getFormattedTime(t));
    }
    
    public static String getFormattedTime(int sec){
        int h = sec / 3600;
        int rest_h = sec - h * 3600;
        int m = rest_h / 60;
        int s = rest_h - m * 60; 
        return String.format("%d:%d:%d", h, m, s);
    }
    
} class Main{
    
    public static void main(String[] args){
        java.util.Scanner in = new java.util.Scanner(System.in);
        int t = in.nextInt();
        System.out.println(getFormattedTime(t));
    }
    
    public static String getFormattedTime(int sec){
        int h = sec / 3600;
        int rest_h = sec - h * 3600;
        int m = rest_h / 60;
        int s = rest_h - m * 60; 
        return String.format("%d:%d:%d", h, m, s);
    }
    
} Main public static void main(String[] args){
        java.util.Scanner in = new java.util.Scanner(System.in);
        int t = in.nextInt();
        System.out.println(getFormattedTime(t));
    } main {
        java.util.Scanner in = new java.util.Scanner(System.in);
        int t = in.nextInt();
        System.out.println(getFormattedTime(t));
    } java.util.Scanner in = new java.util.Scanner(System.in); in new java.util.Scanner(System.in) int t = in.nextInt(); t in.nextInt() in.nextInt in System.out.println(getFormattedTime(t)) System.out.println System.out System System.out getFormattedTime(t) getFormattedTime t String[] args args public static String getFormattedTime(int sec){
        int h = sec / 3600;
        int rest_h = sec - h * 3600;
        int m = rest_h / 60;
        int s = rest_h - m * 60; 
        return String.format("%d:%d:%d", h, m, s);
    } getFormattedTime {
        int h = sec / 3600;
        int rest_h = sec - h * 3600;
        int m = rest_h / 60;
        int s = rest_h - m * 60; 
        return String.format("%d:%d:%d", h, m, s);
    } int h = sec / 3600; h sec / 3600 sec 3600 int rest_h = sec - h * 3600; rest_h sec - h * 3600 sec h * 3600 h 3600 int m = rest_h / 60; m rest_h / 60 rest_h 60 int s = rest_h - m * 60; s rest_h - m * 60 rest_h m * 60 m 60 return String.format("%d:%d:%d", h, m, s); String.format("%d:%d:%d", h, m, s) String.format String "%d:%d:%d" h m s int sec sec
class Main{
    
    public static void main(String[] args){
        java.util.Scanner in = new java.util.Scanner(System.in);
        int t = in.nextInt();
        System.out.println(getFormattedTime(t));
    }
    
    public static String getFormattedTime(int sec){
        int h = sec / 3600;
        int rest_h = sec - h * 3600;
        int m = rest_h / 60;
        int s = rest_h - m * 60; 
        return String.format("%d:%d:%d", h, m, s);
    }
    
}