import java.util.Scanner;

public class Main {

    private static final String FORMAT = "%d:%d:%d";

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

        int sec = targetSec % 60;
        int min = (targetSec / 60) % 60;
        int hour = (targetSec / (60 * 60));
        System.out.println(String.format(FORMAT, hour, min, sec));
    }
} import java.util.Scanner; Scanner java.util public class Main {

    private static final String FORMAT = "%d:%d:%d";

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

        int sec = targetSec % 60;
        int min = (targetSec / 60) % 60;
        int hour = (targetSec / (60 * 60));
        System.out.println(String.format(FORMAT, hour, min, sec));
    }
} Main private static final String FORMAT = "%d:%d:%d"; FORMAT "%d:%d:%d" public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int targetSec = scanner.nextInt();

        int sec = targetSec % 60;
        int min = (targetSec / 60) % 60;
        int hour = (targetSec / (60 * 60));
        System.out.println(String.format(FORMAT, hour, min, sec));
    } main {
        Scanner scanner = new Scanner(System.in);
        int targetSec = scanner.nextInt();

        int sec = targetSec % 60;
        int min = (targetSec / 60) % 60;
        int hour = (targetSec / (60 * 60));
        System.out.println(String.format(FORMAT, hour, min, sec));
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int targetSec = scanner.nextInt(); targetSec scanner.nextInt() scanner.nextInt scanner int sec = targetSec % 60; sec targetSec % 60 targetSec 60 int min = (targetSec / 60) % 60; min (targetSec / 60) % 60 (targetSec / 60) targetSec 60 60 int hour = (targetSec / (60 * 60)); hour (targetSec / (60 * 60)) targetSec (60 * 60) 60 60 System.out.println(String.format(FORMAT, hour, min, sec)) System.out.println System.out System System.out String.format(FORMAT, hour, min, sec) String.format String FORMAT hour min sec String[] args args public class Main {

    private static final String FORMAT = "%d:%d:%d";

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

        int sec = targetSec % 60;
        int min = (targetSec / 60) % 60;
        int hour = (targetSec / (60 * 60));
        System.out.println(String.format(FORMAT, hour, min, sec));
    }
} public class Main {

    private static final String FORMAT = "%d:%d:%d";

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

        int sec = targetSec % 60;
        int min = (targetSec / 60) % 60;
        int hour = (targetSec / (60 * 60));
        System.out.println(String.format(FORMAT, hour, min, sec));
    }
} Main
import java.util.Scanner;

public class Main {

    private static final String FORMAT = "%d:%d:%d";

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

        int sec = targetSec % 60;
        int min = (targetSec / 60) % 60;
        int hour = (targetSec / (60 * 60));
        System.out.println(String.format(FORMAT, hour, min, sec));
    }
}