import java.io.*;
public class Main {
    public static void main(String[] args) {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        try {
            String line = reader.readLine();
            int n = Integer.parseInt(line);
            if (0 <= n && n < 86400) {
                int h = n / (60 * 60);
                int x = n % (60 * 60);
                int m = x / 60;
                int s = x % 60;
                System.out.println(h + ":" + m + ":" + s);
            } else {
                System.out.println("error!");
            }
        } catch (IOException e) {
            System.out.println(e);
        } catch (NumberFormatException e) {
            System.out.println("??°????????¢????????£????????????????????????");
        }
    }
} import java.io.*; io.* java public class Main {
    public static void main(String[] args) {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        try {
            String line = reader.readLine();
            int n = Integer.parseInt(line);
            if (0 <= n && n < 86400) {
                int h = n / (60 * 60);
                int x = n % (60 * 60);
                int m = x / 60;
                int s = x % 60;
                System.out.println(h + ":" + m + ":" + s);
            } else {
                System.out.println("error!");
            }
        } catch (IOException e) {
            System.out.println(e);
        } catch (NumberFormatException e) {
            System.out.println("??°????????¢????????£????????????????????????");
        }
    }
} Main public static void main(String[] args) {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        try {
            String line = reader.readLine();
            int n = Integer.parseInt(line);
            if (0 <= n && n < 86400) {
                int h = n / (60 * 60);
                int x = n % (60 * 60);
                int m = x / 60;
                int s = x % 60;
                System.out.println(h + ":" + m + ":" + s);
            } else {
                System.out.println("error!");
            }
        } catch (IOException e) {
            System.out.println(e);
        } catch (NumberFormatException e) {
            System.out.println("??°????????¢????????£????????????????????????");
        }
    } main {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        try {
            String line = reader.readLine();
            int n = Integer.parseInt(line);
            if (0 <= n && n < 86400) {
                int h = n / (60 * 60);
                int x = n % (60 * 60);
                int m = x / 60;
                int s = x % 60;
                System.out.println(h + ":" + m + ":" + s);
            } else {
                System.out.println("error!");
            }
        } catch (IOException e) {
            System.out.println(e);
        } catch (NumberFormatException e) {
            System.out.println("??°????????¢????????£????????????????????????");
        }
    } BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); reader new BufferedReader(new InputStreamReader(System.in)) try {
            String line = reader.readLine();
            int n = Integer.parseInt(line);
            if (0 <= n && n < 86400) {
                int h = n / (60 * 60);
                int x = n % (60 * 60);
                int m = x / 60;
                int s = x % 60;
                System.out.println(h + ":" + m + ":" + s);
            } else {
                System.out.println("error!");
            }
        } catch (IOException e) {
            System.out.println(e);
        } catch (NumberFormatException e) {
            System.out.println("??°????????¢????????£????????????????????????");
        } catch (IOException e) {
            System.out.println(e);
        } IOException e {
            System.out.println(e);
        } System.out.println(e) System.out.println System.out System System.out e catch (NumberFormatException e) {
            System.out.println("??°????????¢????????£????????????????????????");
        } NumberFormatException e {
            System.out.println("??°????????¢????????£????????????????????????");
        } System.out.println("??°????????¢????????£????????????????????????") System.out.println System.out System System.out "??°????????¢????????£????????????????????????" {
            String line = reader.readLine();
            int n = Integer.parseInt(line);
            if (0 <= n && n < 86400) {
                int h = n / (60 * 60);
                int x = n % (60 * 60);
                int m = x / 60;
                int s = x % 60;
                System.out.println(h + ":" + m + ":" + s);
            } else {
                System.out.println("error!");
            }
        } String line = reader.readLine(); line reader.readLine() reader.readLine reader int n = Integer.parseInt(line); n Integer.parseInt(line) Integer.parseInt Integer line if (0 <= n && n < 86400) {
                int h = n / (60 * 60);
                int x = n % (60 * 60);
                int m = x / 60;
                int s = x % 60;
                System.out.println(h + ":" + m + ":" + s);
            } else {
                System.out.println("error!");
            } 0 <= n && n < 86400 0 <= n 0 n n < 86400 n 86400 {
                int h = n / (60 * 60);
                int x = n % (60 * 60);
                int m = x / 60;
                int s = x % 60;
                System.out.println(h + ":" + m + ":" + s);
            } int h = n / (60 * 60); h n / (60 * 60) n (60 * 60) 60 60 int x = n % (60 * 60); x n % (60 * 60) n (60 * 60) 60 60 int m = x / 60; m x / 60 x 60 int s = x % 60; s x % 60 x 60 System.out.println(h + ":" + m + ":" + s) System.out.println System.out System System.out h + ":" + m + ":" + s ":" m h + ":" + m + ":" + s h ":" m ":" s {
                System.out.println("error!");
            } System.out.println("error!") System.out.println System.out System System.out "error!" String[] args args public class Main {
    public static void main(String[] args) {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        try {
            String line = reader.readLine();
            int n = Integer.parseInt(line);
            if (0 <= n && n < 86400) {
                int h = n / (60 * 60);
                int x = n % (60 * 60);
                int m = x / 60;
                int s = x % 60;
                System.out.println(h + ":" + m + ":" + s);
            } else {
                System.out.println("error!");
            }
        } catch (IOException e) {
            System.out.println(e);
        } catch (NumberFormatException e) {
            System.out.println("??°????????¢????????£????????????????????????");
        }
    }
} public class Main {
    public static void main(String[] args) {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        try {
            String line = reader.readLine();
            int n = Integer.parseInt(line);
            if (0 <= n && n < 86400) {
                int h = n / (60 * 60);
                int x = n % (60 * 60);
                int m = x / 60;
                int s = x % 60;
                System.out.println(h + ":" + m + ":" + s);
            } else {
                System.out.println("error!");
            }
        } catch (IOException e) {
            System.out.println(e);
        } catch (NumberFormatException e) {
            System.out.println("??°????????¢????????£????????????????????????");
        }
    }
} Main
import java.io.*;
public class Main {
    public static void main(String[] args) {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        try {
            String line = reader.readLine();
            int n = Integer.parseInt(line);
            if (0 <= n && n < 86400) {
                int h = n / (60 * 60);
                int x = n % (60 * 60);
                int m = x / 60;
                int s = x % 60;
                System.out.println(h + ":" + m + ":" + s);
            } else {
                System.out.println("error!");
            }
        } catch (IOException e) {
            System.out.println(e);
        } catch (NumberFormatException e) {
            System.out.println("??°????????¢????????£????????????????????????");
        }
    }
}