import static java.lang.System.out;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        int S = new Scanner(System.in).nextInt();

        int h = S / 3600;
        int m = (S - h * 3600) / 60; 
        int s = S - (h * 3600 + m * 60);                                        

        out.printf("%d:%d:%d%n", h, m ,s);
    }   
} import static java.lang.System.out; import static java.lang.System.out; import static java.lang.System.out; import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        int S = new Scanner(System.in).nextInt();

        int h = S / 3600;
        int m = (S - h * 3600) / 60; 
        int s = S - (h * 3600 + m * 60);                                        

        out.printf("%d:%d:%d%n", h, m ,s);
    }   
} Main public static void main(String[] args) {
        int S = new Scanner(System.in).nextInt();

        int h = S / 3600;
        int m = (S - h * 3600) / 60; 
        int s = S - (h * 3600 + m * 60);                                        

        out.printf("%d:%d:%d%n", h, m ,s);
    } main {
        int S = new Scanner(System.in).nextInt();

        int h = S / 3600;
        int m = (S - h * 3600) / 60; 
        int s = S - (h * 3600 + m * 60);                                        

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

        int h = S / 3600;
        int m = (S - h * 3600) / 60; 
        int s = S - (h * 3600 + m * 60);                                        

        out.printf("%d:%d:%d%n", h, m ,s);
    }   
} public class Main {
    public static void main(String[] args) {
        int S = new Scanner(System.in).nextInt();

        int h = S / 3600;
        int m = (S - h * 3600) / 60; 
        int s = S - (h * 3600 + m * 60);                                        

        out.printf("%d:%d:%d%n", h, m ,s);
    }   
} Main
import static java.lang.System.out;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        int S = new Scanner(System.in).nextInt();

        int h = S / 3600;
        int m = (S - h * 3600) / 60; 
        int s = S - (h * 3600 + m * 60);                                        

        out.printf("%d:%d:%d%n", h, m ,s);
    }   
}