import static java.lang.Integer.parseInt;

public class Main {
    public static void main (String[] args) {
        String line = new java.util.Scanner ( System.in ).nextLine();
        String hour = watch (line);
        System.out.println(hour);
    }
    public static String watch(String line){
        int hour,min,second;
        second = parseInt(line);
        if (second < 0 || second > 86400) {
            System.out.println("Constraints Error");
            return null;
        }
        hour = second / 3600;
        min = (second % 3600 ) / 60;
        second = second % 60;
        
        return hour + ":" + min + ":" + second;
    }
} import static java.lang.Integer.parseInt; import static java.lang.Integer.parseInt; import static java.lang.Integer.parseInt; public class Main {
    public static void main (String[] args) {
        String line = new java.util.Scanner ( System.in ).nextLine();
        String hour = watch (line);
        System.out.println(hour);
    }
    public static String watch(String line){
        int hour,min,second;
        second = parseInt(line);
        if (second < 0 || second > 86400) {
            System.out.println("Constraints Error");
            return null;
        }
        hour = second / 3600;
        min = (second % 3600 ) / 60;
        second = second % 60;
        
        return hour + ":" + min + ":" + second;
    }
} Main public static void main (String[] args) {
        String line = new java.util.Scanner ( System.in ).nextLine();
        String hour = watch (line);
        System.out.println(hour);
    } main {
        String line = new java.util.Scanner ( System.in ).nextLine();
        String hour = watch (line);
        System.out.println(hour);
    } String line = new java.util.Scanner ( System.in ).nextLine(); line new java.util.Scanner ( System.in ).nextLine() new java.util.Scanner ( System.in ).nextLine new java.util.Scanner ( System.in ) String hour = watch (line); hour watch (line) watch line System.out.println(hour) System.out.println System.out System System.out hour String[] args args public static String watch(String line){
        int hour,min,second;
        second = parseInt(line);
        if (second < 0 || second > 86400) {
            System.out.println("Constraints Error");
            return null;
        }
        hour = second / 3600;
        min = (second % 3600 ) / 60;
        second = second % 60;
        
        return hour + ":" + min + ":" + second;
    } watch {
        int hour,min,second;
        second = parseInt(line);
        if (second < 0 || second > 86400) {
            System.out.println("Constraints Error");
            return null;
        }
        hour = second / 3600;
        min = (second % 3600 ) / 60;
        second = second % 60;
        
        return hour + ":" + min + ":" + second;
    } int hour hour min min second; second second = parseInt(line) second parseInt(line) parseInt line if (second < 0 || second > 86400) {
            System.out.println("Constraints Error");
            return null;
        } second < 0 || second > 86400 second < 0 second 0 second > 86400 second 86400 {
            System.out.println("Constraints Error");
            return null;
        } System.out.println("Constraints Error") System.out.println System.out System System.out "Constraints Error" return null; null hour = second / 3600 hour second / 3600 second 3600 min = (second % 3600 ) / 60 min (second % 3600 ) / 60 (second % 3600 ) second 3600 60 second = second % 60 second second % 60 second 60 return hour + ":" + min + ":" + second; hour + ":" + min + ":" + second ":" min hour + ":" + min + ":" + second hour ":" min ":" second String line line public class Main {
    public static void main (String[] args) {
        String line = new java.util.Scanner ( System.in ).nextLine();
        String hour = watch (line);
        System.out.println(hour);
    }
    public static String watch(String line){
        int hour,min,second;
        second = parseInt(line);
        if (second < 0 || second > 86400) {
            System.out.println("Constraints Error");
            return null;
        }
        hour = second / 3600;
        min = (second % 3600 ) / 60;
        second = second % 60;
        
        return hour + ":" + min + ":" + second;
    }
} public class Main {
    public static void main (String[] args) {
        String line = new java.util.Scanner ( System.in ).nextLine();
        String hour = watch (line);
        System.out.println(hour);
    }
    public static String watch(String line){
        int hour,min,second;
        second = parseInt(line);
        if (second < 0 || second > 86400) {
            System.out.println("Constraints Error");
            return null;
        }
        hour = second / 3600;
        min = (second % 3600 ) / 60;
        second = second % 60;
        
        return hour + ":" + min + ":" + second;
    }
} Main
import static java.lang.Integer.parseInt;

public class Main {
    public static void main (String[] args) {
        String line = new java.util.Scanner ( System.in ).nextLine();
        String hour = watch (line);
        System.out.println(hour);
    }
    public static String watch(String line){
        int hour,min,second;
        second = parseInt(line);
        if (second < 0 || second > 86400) {
            System.out.println("Constraints Error");
            return null;
        }
        hour = second / 3600;
        min = (second % 3600 ) / 60;
        second = second % 60;
        
        return hour + ":" + min + ":" + second;
    }
}