import java.util.Scanner;

public class Main{
    public static void main(String[] args){
        System.out.println(Main.time());
    }

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

    public static String time(){
        Scanner scan = new Scanner(System.in);
        int S = scan.nextInt();
        int h = (S-S%3600)/3600;
        int m = ((S-h*3600)-(S-h*3600)%60)/60;
        int s = (S-h*3600-m*60);
        return h+":"+m+":"+s;
    }
} Main public static void main(String[] args){
        System.out.println(Main.time());
    } main {
        System.out.println(Main.time());
    } System.out.println(Main.time()) System.out.println System.out System System.out Main.time() Main.time Main String[] args args public static String time(){
        Scanner scan = new Scanner(System.in);
        int S = scan.nextInt();
        int h = (S-S%3600)/3600;
        int m = ((S-h*3600)-(S-h*3600)%60)/60;
        int s = (S-h*3600-m*60);
        return h+":"+m+":"+s;
    } time {
        Scanner scan = new Scanner(System.in);
        int S = scan.nextInt();
        int h = (S-S%3600)/3600;
        int m = ((S-h*3600)-(S-h*3600)%60)/60;
        int s = (S-h*3600-m*60);
        return h+":"+m+":"+s;
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int S = scan.nextInt(); S scan.nextInt() scan.nextInt scan int h = (S-S%3600)/3600; h (S-S%3600)/3600 (S-S%3600) S S%3600 S 3600 3600 int m = ((S-h*3600)-(S-h*3600)%60)/60; m ((S-h*3600)-(S-h*3600)%60)/60 ((S-h*3600)-(S-h*3600)%60) (S-h*3600) S h*3600 h 3600 (S-h*3600)%60 (S-h*3600) S h*3600 h 3600 60 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 return h+":"+m+":"+s; h+":"+m+":"+s ":" m h+":"+m+":"+s h ":" m ":" s public class Main{
    public static void main(String[] args){
        System.out.println(Main.time());
    }

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

    public static String time(){
        Scanner scan = new Scanner(System.in);
        int S = scan.nextInt();
        int h = (S-S%3600)/3600;
        int m = ((S-h*3600)-(S-h*3600)%60)/60;
        int s = (S-h*3600-m*60);
        return h+":"+m+":"+s;
    }
} Main
import java.util.Scanner;

public class Main{
    public static void main(String[] args){
        System.out.println(Main.time());
    }

    public static String time(){
        Scanner scan = new Scanner(System.in);
        int S = scan.nextInt();
        int h = (S-S%3600)/3600;
        int m = ((S-h*3600)-(S-h*3600)%60)/60;
        int s = (S-h*3600-m*60);
        return h+":"+m+":"+s;
    }
}

