Problem: jfen

There is a one-person game to play on the H × W board. This game is a game to move 0 or 1 balls in each cell. You were playing this game and found it difficult to move the ball accurately from cell to cell because the ball is so round. So you decided to make a robot that would move the ball as instructed. Here, the notation (y, x) is used to represent the cell. This represents the cell in the xth column of the yth row.

Instructions to the robot are given by the four integers a, b, c, d. This means moving the ball at (a, b) to (c, d). At this time, it is guaranteed that the ball exists in (a, b) and does not exist in (c, d).

The state of the board is expressed by the following notation called "jfen".


[Data in the first line] / [Data in the second line] /.../ [Data in the H line]

This notation is a slash-separated concatenation of data representing each line on the board. The data in each row is represented by a character string, and the state of the cells in the 1st to Wth columns is described in order from the left. This string is represented by a number and the letter'b', where the integer represented by the number represents the number of consecutive blank cells and'b' represents the cell in which the ball resides. Here, integers must not be consecutive in the data of each row. Also, the sum of the integers written in the data of each line and the sum of the number of'b'are always W.

As an example, consider the following board surface condition. A blank cell is represented by a'.', And a cell in which the ball exists is represented by a'b'. The j character from the left of the i-th row in this example represents the state of the cell in the j-th column of the i-th row on the board.


....
.b.b
....


The above board is expressed in jfen as follows.


4 / 1b1b / 4

Create a program that outputs the board surface after the robot moves the ball when the robot is given the current board surface state and a command to move one ball. At this time, output the board surface in jfen notation.

Input

The input consists of multiple datasets. Each dataset has the following format.

> S
> a b c d

Each dataset consists of two lines, and the first line is given the jfen-formatted string S, which represents the state of the board. Here, the size of the board satisfies 2 ≤ W and H ≤ 9. Instructions to the robot are given to the following lines. This represents an instruction to move the ball at (a, b) to (c, d). The end of the input is represented by #.

Output

The output is one line of character string that expresses the state of the board after executing the instruction for each data set in jfen notation. There must be no other characters on the output line.

Sample Input


b1 / 1b
1 1 1 2
b5 / bbbbbb
2 4 1 4
b2b2b / 7
1 4 2 4


Output for Sample Input


1b / 1b
b2b2 / bbb1bb
b5b / 3b3


The initial state of the first input is as follows.


b.
.b


Since the ball of (1,1) is moved to (1,2), the board surface after the command is as follows.


.b
.b






Example

Input

b1/1b
1 1 1 2
b5/bbbbbb
2 4 1 4
b2b2b/7
1 4 2 4
#


Output

1b/1b
b2b2/bbb1bb
b5b/3b3

Solution (in CPP):

Solution:
#include <bits/stdc++.h>
using namespace std;

inline std::vector<std::string> split(const std::string &str, char sep)
{
    std::vector<std::string> v;
    std::stringstream ss(str);
    std::string buffer;
    while( std::getline(ss, buffer, sep) ) {
        v.push_back(buffer);
    }
    return v;
}

int w = 0,h = 0;

inline string make_jfen(bool *ball){

    string ret = "";

    int counter = 0;
    for(int j=0; j<w; j++){
        if(ball[j]){
            if(counter != 0){
                stringstream ss;
                ss << counter;
                char num_c;
                ss >> num_c;
                ret += num_c;
                counter = 0;
            }
            ret += 'b';
        }
        else if(!ball[j]){
            counter++;
        }
    }
    if(counter != 0){
        stringstream ss;
        ss << counter;
        char num_c;
        ss >> num_c;
        ret += num_c;
        counter = 0;
    }

    return ret;

}

bool avoid_ball[10],insert_ball[10];

int main() {


    while(true){

        string s;
        cin >> s;
        if(s == "#"){
            break;
        }

        vector<string> vec = split(s,'/');

        w = 0;
        h = vec.size();

        for(int i=0; i < vec[0].size(); i++){
            char cc = vec[0][i];
            if(cc == 'b'){
                w++;
                continue;
            }
            stringstream ss;
            ss << cc;
            int tmp;
            ss >> tmp;
            w += tmp;
        }

        int a,b,c,d;

        cin >> a >> b >> c >> d;

        a--;
        b--;
        c--;
        d--;

        if(a != c){
            int index=0;
            memset(avoid_ball, false, sizeof(avoid_ball));
            for(int i=0; i < vec[a].size(); i++){
                char cc = vec[a][i];
                if(cc == 'b'){
                    avoid_ball[index] = true;
                    index++;
                    continue;
                }
                stringstream ss;
                ss << cc;
                int tmp;
                ss >> tmp;
                index += tmp;
            }
            avoid_ball[b] = false;
            vec[a] = make_jfen(avoid_ball);

            memset(insert_ball, false, sizeof(insert_ball));
            index = 0;
            for(int i=0; i < vec[c].size(); i++){
                char cc = vec[c][i];
                if(cc == 'b'){
                    insert_ball[index] = true;
                    index++;
                    continue;
                }
                stringstream ss;
                ss << cc;
                int tmp;
                ss >> tmp;
                index += tmp;
            }
            insert_ball[d] = true;
            vec[c] = make_jfen(insert_ball);
        }
        else if(a == c){

            memset(avoid_ball, false, sizeof(avoid_ball));
            int index=0;
            for(int i=0; i < vec[a].size(); i++){
                char cc = vec[a][i];
                if(cc == 'b'){
                    avoid_ball[index] = true;
                    index++;
                    continue;
                }
                stringstream ss;
                ss << cc;
                int tmp;
                ss >> tmp;
                index += tmp;
            }

            avoid_ball[b] = false;
            avoid_ball[d] = true;

            vec[a] = make_jfen(avoid_ball);

        }

        string ans = "";

        for(int i=0; i<h; i++){
            ans += vec[i];
            if(i+1 != h){
                ans += '/';
            }
        }

        cout << ans << endl;


    }
    
    return 0;
}