import java.util.*;
import java.io.*;

public class LS {
    public static void main(String[] args) {
        try {
            String[] command = {"/bin/sh", "-c", "ls -FC "};
            Runtime r = Runtime.getRuntime();
            Process p = r.exec(command);

            InputStream p_in = p.getInputStream();
            int c;
            int newlines = 0;
            while ((c = p_in.read()) != -1) {
                System.out.print((char) c);
            }
            p_in.close();
            System.exit(0);
        }
        catch(IOException e) {
            System.out.println("ERROR: exec failure");
            System.exit(3);
        }
    }
}

