import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        final int SEC_FOR_HOUR = 3600;
        final int SEC_FOR_MINUTE = 60;

        Scanner sc = new Scanner(System.in);
        int inputSec = 0;
        try {
            inputSec = sc.nextInt();
        } catch (Exception e) {
            // TODO: handle exception
        } finally {
            sc.close();
        }

        // Hour
        int hour = inputSec / SEC_FOR_HOUR;
        int wkSec = inputSec - hour * SEC_FOR_HOUR;
        // Minutes
        int minute = wkSec / SEC_FOR_MINUTE;
        wkSec = wkSec - minute * SEC_FOR_MINUTE;
        // Second
        int second = wkSec;

        StringBuffer sb = new StringBuffer();
        sb.append(hour + ":" + minute + ":" + second);

        System.out.println(sb);
    }
} import java.util.Scanner; Scanner java.util public class Main {

    public static void main(String[] args) {
        final int SEC_FOR_HOUR = 3600;
        final int SEC_FOR_MINUTE = 60;

        Scanner sc = new Scanner(System.in);
        int inputSec = 0;
        try {
            inputSec = sc.nextInt();
        } catch (Exception e) {
            // TODO: handle exception
        } finally {
            sc.close();
        }

        // Hour
        int hour = inputSec / SEC_FOR_HOUR;
        int wkSec = inputSec - hour * SEC_FOR_HOUR;
        // Minutes
        int minute = wkSec / SEC_FOR_MINUTE;
        wkSec = wkSec - minute * SEC_FOR_MINUTE;
        // Second
        int second = wkSec;

        StringBuffer sb = new StringBuffer();
        sb.append(hour + ":" + minute + ":" + second);

        System.out.println(sb);
    }
} Main public static void main(String[] args) {
        final int SEC_FOR_HOUR = 3600;
        final int SEC_FOR_MINUTE = 60;

        Scanner sc = new Scanner(System.in);
        int inputSec = 0;
        try {
            inputSec = sc.nextInt();
        } catch (Exception e) {
            // TODO: handle exception
        } finally {
            sc.close();
        }

        // Hour
        int hour = inputSec / SEC_FOR_HOUR;
        int wkSec = inputSec - hour * SEC_FOR_HOUR;
        // Minutes
        int minute = wkSec / SEC_FOR_MINUTE;
        wkSec = wkSec - minute * SEC_FOR_MINUTE;
        // Second
        int second = wkSec;

        StringBuffer sb = new StringBuffer();
        sb.append(hour + ":" + minute + ":" + second);

        System.out.println(sb);
    } main {
        final int SEC_FOR_HOUR = 3600;
        final int SEC_FOR_MINUTE = 60;

        Scanner sc = new Scanner(System.in);
        int inputSec = 0;
        try {
            inputSec = sc.nextInt();
        } catch (Exception e) {
            // TODO: handle exception
        } finally {
            sc.close();
        }

        // Hour
        int hour = inputSec / SEC_FOR_HOUR;
        int wkSec = inputSec - hour * SEC_FOR_HOUR;
        // Minutes
        int minute = wkSec / SEC_FOR_MINUTE;
        wkSec = wkSec - minute * SEC_FOR_MINUTE;
        // Second
        int second = wkSec;

        StringBuffer sb = new StringBuffer();
        sb.append(hour + ":" + minute + ":" + second);

        System.out.println(sb);
    } final int SEC_FOR_HOUR = 3600; SEC_FOR_HOUR 3600 final int SEC_FOR_MINUTE = 60; SEC_FOR_MINUTE 60 Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int inputSec = 0; inputSec 0 try {
            inputSec = sc.nextInt();
        } catch (Exception e) {
            // TODO: handle exception
        } finally {
            sc.close();
        } catch (Exception e) {
            // TODO: handle exception
        } Exception e {
            // TODO: handle exception
        } {
            sc.close();
        } sc.close() sc.close sc {
            inputSec = sc.nextInt();
        } inputSec = sc.nextInt() inputSec sc.nextInt() sc.nextInt sc int hour = inputSec / SEC_FOR_HOUR; hour inputSec / SEC_FOR_HOUR inputSec SEC_FOR_HOUR int wkSec = inputSec - hour * SEC_FOR_HOUR; wkSec inputSec - hour * SEC_FOR_HOUR inputSec hour * SEC_FOR_HOUR hour SEC_FOR_HOUR int minute = wkSec / SEC_FOR_MINUTE; minute wkSec / SEC_FOR_MINUTE wkSec SEC_FOR_MINUTE wkSec = wkSec - minute * SEC_FOR_MINUTE wkSec wkSec - minute * SEC_FOR_MINUTE wkSec minute * SEC_FOR_MINUTE minute SEC_FOR_MINUTE int second = wkSec; second wkSec StringBuffer sb = new StringBuffer(); sb new StringBuffer() sb.append(hour + ":" + minute + ":" + second) sb.append sb hour + ":" + minute + ":" + second ":" minute hour + ":" + minute + ":" + second hour ":" minute ":" second System.out.println(sb) System.out.println System.out System System.out sb String[] args args public class Main {

    public static void main(String[] args) {
        final int SEC_FOR_HOUR = 3600;
        final int SEC_FOR_MINUTE = 60;

        Scanner sc = new Scanner(System.in);
        int inputSec = 0;
        try {
            inputSec = sc.nextInt();
        } catch (Exception e) {
            // TODO: handle exception
        } finally {
            sc.close();
        }

        // Hour
        int hour = inputSec / SEC_FOR_HOUR;
        int wkSec = inputSec - hour * SEC_FOR_HOUR;
        // Minutes
        int minute = wkSec / SEC_FOR_MINUTE;
        wkSec = wkSec - minute * SEC_FOR_MINUTE;
        // Second
        int second = wkSec;

        StringBuffer sb = new StringBuffer();
        sb.append(hour + ":" + minute + ":" + second);

        System.out.println(sb);
    }
} public class Main {

    public static void main(String[] args) {
        final int SEC_FOR_HOUR = 3600;
        final int SEC_FOR_MINUTE = 60;

        Scanner sc = new Scanner(System.in);
        int inputSec = 0;
        try {
            inputSec = sc.nextInt();
        } catch (Exception e) {
            // TODO: handle exception
        } finally {
            sc.close();
        }

        // Hour
        int hour = inputSec / SEC_FOR_HOUR;
        int wkSec = inputSec - hour * SEC_FOR_HOUR;
        // Minutes
        int minute = wkSec / SEC_FOR_MINUTE;
        wkSec = wkSec - minute * SEC_FOR_MINUTE;
        // Second
        int second = wkSec;

        StringBuffer sb = new StringBuffer();
        sb.append(hour + ":" + minute + ":" + second);

        System.out.println(sb);
    }
} Main
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        final int SEC_FOR_HOUR = 3600;
        final int SEC_FOR_MINUTE = 60;

        Scanner sc = new Scanner(System.in);
        int inputSec = 0;
        try {
            inputSec = sc.nextInt();
        } catch (Exception e) {
            // TODO: handle exception
        } finally {
            sc.close();
        }

        // Hour
        int hour = inputSec / SEC_FOR_HOUR;
        int wkSec = inputSec - hour * SEC_FOR_HOUR;
        // Minutes
        int minute = wkSec / SEC_FOR_MINUTE;
        wkSec = wkSec - minute * SEC_FOR_MINUTE;
        // Second
        int second = wkSec;

        StringBuffer sb = new StringBuffer();
        sb.append(hour + ":" + minute + ":" + second);

        System.out.println(sb);
    }
}