import java.util.Scanner;

/**
 * Created by labuser on 2016/04/15.
 */
public class Main {
    public static void main(String[] args) {
        new Main().run();
    }

    private void run() {
        int s;
        int h;
        int m;
        int sl;

        Scanner sc = new Scanner(System.in);
        s = Integer.parseInt(sc.nextLine());

        h = s / 3600;
        m = s % 3600 / 60;
        sl = s % 3600 % 60;
        System.out.println(h+":"+m+":"+sl);

    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        new Main().run();
    }

    private void run() {
        int s;
        int h;
        int m;
        int sl;

        Scanner sc = new Scanner(System.in);
        s = Integer.parseInt(sc.nextLine());

        h = s / 3600;
        m = s % 3600 / 60;
        sl = s % 3600 % 60;
        System.out.println(h+":"+m+":"+sl);

    }
} Main public static void main(String[] args) {
        new Main().run();
    } main {
        new Main().run();
    } new Main().run() new Main().run new Main() String[] args args private void run() {
        int s;
        int h;
        int m;
        int sl;

        Scanner sc = new Scanner(System.in);
        s = Integer.parseInt(sc.nextLine());

        h = s / 3600;
        m = s % 3600 / 60;
        sl = s % 3600 % 60;
        System.out.println(h+":"+m+":"+sl);

    } run {
        int s;
        int h;
        int m;
        int sl;

        Scanner sc = new Scanner(System.in);
        s = Integer.parseInt(sc.nextLine());

        h = s / 3600;
        m = s % 3600 / 60;
        sl = s % 3600 % 60;
        System.out.println(h+":"+m+":"+sl);

    } int s; s int h; h int m; m int sl; sl Scanner sc = new Scanner(System.in); sc new Scanner(System.in) s = Integer.parseInt(sc.nextLine()) s Integer.parseInt(sc.nextLine()) Integer.parseInt Integer sc.nextLine() sc.nextLine sc h = s / 3600 h s / 3600 s 3600 m = s % 3600 / 60 m s % 3600 / 60 s % 3600 s 3600 60 sl = s % 3600 % 60 sl s % 3600 % 60 s % 3600 % 60 s 3600 60 System.out.println(h+":"+m+":"+sl) System.out.println System.out System System.out h+":"+m+":"+sl ":" m h+":"+m+":"+sl h ":" m ":" sl public class Main {
    public static void main(String[] args) {
        new Main().run();
    }

    private void run() {
        int s;
        int h;
        int m;
        int sl;

        Scanner sc = new Scanner(System.in);
        s = Integer.parseInt(sc.nextLine());

        h = s / 3600;
        m = s % 3600 / 60;
        sl = s % 3600 % 60;
        System.out.println(h+":"+m+":"+sl);

    }
} public class Main {
    public static void main(String[] args) {
        new Main().run();
    }

    private void run() {
        int s;
        int h;
        int m;
        int sl;

        Scanner sc = new Scanner(System.in);
        s = Integer.parseInt(sc.nextLine());

        h = s / 3600;
        m = s % 3600 / 60;
        sl = s % 3600 % 60;
        System.out.println(h+":"+m+":"+sl);

    }
} Main
import java.util.Scanner;

/**
 * Created by labuser on 2016/04/15.
 */
public class Main {
    public static void main(String[] args) {
        new Main().run();
    }

    private void run() {
        int s;
        int h;
        int m;
        int sl;

        Scanner sc = new Scanner(System.in);
        s = Integer.parseInt(sc.nextLine());

        h = s / 3600;
        m = s % 3600 / 60;
        sl = s % 3600 % 60;
        System.out.println(h+":"+m+":"+sl);

    }
}