import static java.lang.System.out;
    public class Main {
        public static void main(String[] args){
            int time = new java.util.Scanner(System.in).nextInt();

            int hour = time / 3600;
            int minute = (time % 3600) / 60;
            int second = (time % 3600) % 60;
            out.print(hour + ":");
            out.print(minute + ":");
            out.println(second);
    
        }
    } import static java.lang.System.out; import static java.lang.System.out; import static java.lang.System.out; public class Main {
        public static void main(String[] args){
            int time = new java.util.Scanner(System.in).nextInt();

            int hour = time / 3600;
            int minute = (time % 3600) / 60;
            int second = (time % 3600) % 60;
            out.print(hour + ":");
            out.print(minute + ":");
            out.println(second);
    
        }
    } Main public static void main(String[] args){
            int time = new java.util.Scanner(System.in).nextInt();

            int hour = time / 3600;
            int minute = (time % 3600) / 60;
            int second = (time % 3600) % 60;
            out.print(hour + ":");
            out.print(minute + ":");
            out.println(second);
    
        } main {
            int time = new java.util.Scanner(System.in).nextInt();

            int hour = time / 3600;
            int minute = (time % 3600) / 60;
            int second = (time % 3600) % 60;
            out.print(hour + ":");
            out.print(minute + ":");
            out.println(second);
    
        } int time = new java.util.Scanner(System.in).nextInt(); time new java.util.Scanner(System.in).nextInt() new java.util.Scanner(System.in).nextInt new java.util.Scanner(System.in) int hour = time / 3600; hour time / 3600 time 3600 int minute = (time % 3600) / 60; minute (time % 3600) / 60 (time % 3600) time 3600 60 int second = (time % 3600) % 60; second (time % 3600) % 60 (time % 3600) time 3600 60 out.print(hour + ":") out.print out hour + ":" hour ":" out.print(minute + ":") out.print out minute + ":" minute ":" out.println(second) out.println out second String[] args args public class Main {
        public static void main(String[] args){
            int time = new java.util.Scanner(System.in).nextInt();

            int hour = time / 3600;
            int minute = (time % 3600) / 60;
            int second = (time % 3600) % 60;
            out.print(hour + ":");
            out.print(minute + ":");
            out.println(second);
    
        }
    } public class Main {
        public static void main(String[] args){
            int time = new java.util.Scanner(System.in).nextInt();

            int hour = time / 3600;
            int minute = (time % 3600) / 60;
            int second = (time % 3600) % 60;
            out.print(hour + ":");
            out.print(minute + ":");
            out.println(second);
    
        }
    } Main
import static java.lang.System.out;
    public class Main {
        public static void main(String[] args){
            int time = new java.util.Scanner(System.in).nextInt();

            int hour = time / 3600;
            int minute = (time % 3600) / 60;
            int second = (time % 3600) % 60;
            out.print(hour + ":");
            out.print(minute + ":");
            out.println(second);
    
        }
    }