import java.io.*;

public class prompt {
    static public void main(String args[]) {                
        for(;;){
            try{
                System.out.print("Naredba:");
                String sCommand=readCommand();                
                if (sCommand.equals("")) continue;
                                
                Process p = Runtime.getRuntime().exec(sCommand);                
                p.waitFor();
            }
            catch(Exception e){
                e.printStackTrace();
            }
        }                
    }
    
    static String readCommand() throws IOException{
        BufferedReader d = new BufferedReader(new InputStreamReader(System.in));        
        String sCommand=d.readLine();
        if (sCommand==null) return null;
        else return sCommand.trim();
    }
}

