void zamien() throws EmptyStackException{ Scanner sc = new Scanner(System.in); while(sc.hasNext()){ String[] lol = sc.nextLine().split(" "); if(lol[0].equals("end")) break; for(int i= 0; i