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 timer = (60 * 60);
        int h = S / timer;
        int m = S % timer / 60;
        int s = S % timer % 60;
        out.println(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 timer = (60 * 60);
        int h = S / timer;
        int m = S % timer / 60;
        int s = S % timer % 60;
        out.println(h + ":" + m + ":" + s);
    }


} Main public static void main(String...args) {

        int S = new Scanner(System.in).nextInt();
        int timer = (60 * 60);
        int h = S / timer;
        int m = S % timer / 60;
        int s = S % timer % 60;
        out.println(h + ":" + m + ":" + s);
    } main {

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

        int S = new Scanner(System.in).nextInt();
        int timer = (60 * 60);
        int h = S / timer;
        int m = S % timer / 60;
        int s = S % timer % 60;
        out.println(h + ":" + m + ":" + s);
    }


} public class Main {
    public static void main(String...args) {

        int S = new Scanner(System.in).nextInt();
        int timer = (60 * 60);
        int h = S / timer;
        int m = S % timer / 60;
        int s = S % timer % 60;
        out.println(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 timer = (60 * 60);
        int h = S / timer;
        int m = S % timer / 60;
        int s = S % timer % 60;
        out.println(h + ":" + m + ":" + s);
    }


}