import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        final Scanner scanner = new Scanner(System.in);
        int sec = Integer.parseInt(scanner.nextLine());
        int hour = sec / (60 * 60);
        sec -= hour * 60 * 60;
        int min = sec / 60;
        sec -= min * 60;

        System.out.println(hour + ":" + min + ":" + sec);
    }
} import java.util.Scanner; Scanner java.util public class Main {

    public static void main(String[] args) {
        final Scanner scanner = new Scanner(System.in);
        int sec = Integer.parseInt(scanner.nextLine());
        int hour = sec / (60 * 60);
        sec -= hour * 60 * 60;
        int min = sec / 60;
        sec -= min * 60;

        System.out.println(hour + ":" + min + ":" + sec);
    }
} Main public static void main(String[] args) {
        final Scanner scanner = new Scanner(System.in);
        int sec = Integer.parseInt(scanner.nextLine());
        int hour = sec / (60 * 60);
        sec -= hour * 60 * 60;
        int min = sec / 60;
        sec -= min * 60;

        System.out.println(hour + ":" + min + ":" + sec);
    } main {
        final Scanner scanner = new Scanner(System.in);
        int sec = Integer.parseInt(scanner.nextLine());
        int hour = sec / (60 * 60);
        sec -= hour * 60 * 60;
        int min = sec / 60;
        sec -= min * 60;

        System.out.println(hour + ":" + min + ":" + sec);
    } final Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int sec = Integer.parseInt(scanner.nextLine()); sec Integer.parseInt(scanner.nextLine()) Integer.parseInt Integer scanner.nextLine() scanner.nextLine scanner int hour = sec / (60 * 60); hour sec / (60 * 60) sec (60 * 60) 60 60 sec -= hour * 60 * 60 sec hour * 60 * 60 hour * 60 * 60 hour 60 60 int min = sec / 60; min sec / 60 sec 60 sec -= min * 60 sec min * 60 min 60 System.out.println(hour + ":" + min + ":" + sec) System.out.println System.out System System.out hour + ":" + min + ":" + sec ":" min hour + ":" + min + ":" + sec hour ":" min ":" sec String[] args args public class Main {

    public static void main(String[] args) {
        final Scanner scanner = new Scanner(System.in);
        int sec = Integer.parseInt(scanner.nextLine());
        int hour = sec / (60 * 60);
        sec -= hour * 60 * 60;
        int min = sec / 60;
        sec -= min * 60;

        System.out.println(hour + ":" + min + ":" + sec);
    }
} public class Main {

    public static void main(String[] args) {
        final Scanner scanner = new Scanner(System.in);
        int sec = Integer.parseInt(scanner.nextLine());
        int hour = sec / (60 * 60);
        sec -= hour * 60 * 60;
        int min = sec / 60;
        sec -= min * 60;

        System.out.println(hour + ":" + min + ":" + sec);
    }
} Main
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        final Scanner scanner = new Scanner(System.in);
        int sec = Integer.parseInt(scanner.nextLine());
        int hour = sec / (60 * 60);
        sec -= hour * 60 * 60;
        int min = sec / 60;
        sec -= min * 60;

        System.out.println(hour + ":" + min + ":" + sec);
    }
}