/**
 * Created by kyle on 2014/12/26.
 */
public class Main {

    private static final int HOUR = 60 * 60;
    private static final int MINUTE = 60;

    public static void main(String[] args) {
        final String line = readLine();
        System.out.println(calc(line));
    }

    protected static String calc(String input) {
        int remains = Integer.parseInt(input);

        int hours = remains / HOUR;
        remains = remains % HOUR;

        int minutes = remains / MINUTE;
        remains = remains % MINUTE;

        int secs = remains;

        return hours + ":" + minutes + ":" + secs;
    }

    private static String readLine() {
        java.util.Scanner s = null;
        try {
            s = new java.util.Scanner(System.in);
            return s.nextLine();
        } finally {
            if (s != null) {
                s.close();
            }
        }
    }
} public class Main {

    private static final int HOUR = 60 * 60;
    private static final int MINUTE = 60;

    public static void main(String[] args) {
        final String line = readLine();
        System.out.println(calc(line));
    }

    protected static String calc(String input) {
        int remains = Integer.parseInt(input);

        int hours = remains / HOUR;
        remains = remains % HOUR;

        int minutes = remains / MINUTE;
        remains = remains % MINUTE;

        int secs = remains;

        return hours + ":" + minutes + ":" + secs;
    }

    private static String readLine() {
        java.util.Scanner s = null;
        try {
            s = new java.util.Scanner(System.in);
            return s.nextLine();
        } finally {
            if (s != null) {
                s.close();
            }
        }
    }
} Main private static final int HOUR = 60 * 60; HOUR 60 * 60 60 60 private static final int MINUTE = 60; MINUTE 60 public static void main(String[] args) {
        final String line = readLine();
        System.out.println(calc(line));
    } main {
        final String line = readLine();
        System.out.println(calc(line));
    } final String line = readLine(); line readLine() readLine System.out.println(calc(line)) System.out.println System.out System System.out calc(line) calc line String[] args args protected static String calc(String input) {
        int remains = Integer.parseInt(input);

        int hours = remains / HOUR;
        remains = remains % HOUR;

        int minutes = remains / MINUTE;
        remains = remains % MINUTE;

        int secs = remains;

        return hours + ":" + minutes + ":" + secs;
    } calc {
        int remains = Integer.parseInt(input);

        int hours = remains / HOUR;
        remains = remains % HOUR;

        int minutes = remains / MINUTE;
        remains = remains % MINUTE;

        int secs = remains;

        return hours + ":" + minutes + ":" + secs;
    } int remains = Integer.parseInt(input); remains Integer.parseInt(input) Integer.parseInt Integer input int hours = remains / HOUR; hours remains / HOUR remains HOUR remains = remains % HOUR remains remains % HOUR remains HOUR int minutes = remains / MINUTE; minutes remains / MINUTE remains MINUTE remains = remains % MINUTE remains remains % MINUTE remains MINUTE int secs = remains; secs remains return hours + ":" + minutes + ":" + secs; hours + ":" + minutes + ":" + secs ":" minutes hours + ":" + minutes + ":" + secs hours ":" minutes ":" secs String input input private static String readLine() {
        java.util.Scanner s = null;
        try {
            s = new java.util.Scanner(System.in);
            return s.nextLine();
        } finally {
            if (s != null) {
                s.close();
            }
        }
    } readLine {
        java.util.Scanner s = null;
        try {
            s = new java.util.Scanner(System.in);
            return s.nextLine();
        } finally {
            if (s != null) {
                s.close();
            }
        }
    } java.util.Scanner s = null; s null try {
            s = new java.util.Scanner(System.in);
            return s.nextLine();
        } finally {
            if (s != null) {
                s.close();
            }
        } {
            if (s != null) {
                s.close();
            }
        } if (s != null) {
                s.close();
            } s != null s null {
                s.close();
            } s.close() s.close s {
            s = new java.util.Scanner(System.in);
            return s.nextLine();
        } s = new java.util.Scanner(System.in) s new java.util.Scanner(System.in) return s.nextLine(); s.nextLine() s.nextLine s public class Main {

    private static final int HOUR = 60 * 60;
    private static final int MINUTE = 60;

    public static void main(String[] args) {
        final String line = readLine();
        System.out.println(calc(line));
    }

    protected static String calc(String input) {
        int remains = Integer.parseInt(input);

        int hours = remains / HOUR;
        remains = remains % HOUR;

        int minutes = remains / MINUTE;
        remains = remains % MINUTE;

        int secs = remains;

        return hours + ":" + minutes + ":" + secs;
    }

    private static String readLine() {
        java.util.Scanner s = null;
        try {
            s = new java.util.Scanner(System.in);
            return s.nextLine();
        } finally {
            if (s != null) {
                s.close();
            }
        }
    }
} public class Main {

    private static final int HOUR = 60 * 60;
    private static final int MINUTE = 60;

    public static void main(String[] args) {
        final String line = readLine();
        System.out.println(calc(line));
    }

    protected static String calc(String input) {
        int remains = Integer.parseInt(input);

        int hours = remains / HOUR;
        remains = remains % HOUR;

        int minutes = remains / MINUTE;
        remains = remains % MINUTE;

        int secs = remains;

        return hours + ":" + minutes + ":" + secs;
    }

    private static String readLine() {
        java.util.Scanner s = null;
        try {
            s = new java.util.Scanner(System.in);
            return s.nextLine();
        } finally {
            if (s != null) {
                s.close();
            }
        }
    }
} Main
/**
 * Created by kyle on 2014/12/26.
 */
public class Main {

    private static final int HOUR = 60 * 60;
    private static final int MINUTE = 60;

    public static void main(String[] args) {
        final String line = readLine();
        System.out.println(calc(line));
    }

    protected static String calc(String input) {
        int remains = Integer.parseInt(input);

        int hours = remains / HOUR;
        remains = remains % HOUR;

        int minutes = remains / MINUTE;
        remains = remains % MINUTE;

        int secs = remains;

        return hours + ":" + minutes + ":" + secs;
    }

    private static String readLine() {
        java.util.Scanner s = null;
        try {
            s = new java.util.Scanner(System.in);
            return s.nextLine();
        } finally {
            if (s != null) {
                s.close();
            }
        }
    }
}