Problem: Two bears are playing tic-tac-toe via mail. It's boring for them to play usual tic-tac-toe game, so they are a playing modified version of this game. Here are its rules.

The game is played on the following field.

<image>

Players are making moves by turns. At first move a player can put his chip in any cell of any small field. For following moves, there are some restrictions: if during last move the opposite player put his chip to cell with coordinates (xl, yl) in some small field, the next move should be done in one of the cells of the small field with coordinates (xl, yl). For example, if in the first move a player puts his chip to lower left cell of central field, then the second player on his next move should put his chip into some cell of lower left field (pay attention to the first test case). If there are no free cells in the required field, the player can put his chip to any empty cell on any field.

You are given current state of the game and coordinates of cell in which the last move was done. You should find all cells in which the current player can put his chip.

A hare works as a postman in the forest, he likes to foul bears. Sometimes he changes the game field a bit, so the current state of the game could be unreachable. However, after his changes the cell where the last move was done is not empty. You don't need to find if the state is unreachable or not, just output possible next moves according to the rules.

Input

First 11 lines contains descriptions of table with 9 rows and 9 columns which are divided into 9 small fields by spaces and empty lines. Each small field is described by 9 characters without spaces and empty lines. character "x" (ASCII-code 120) means that the cell is occupied with chip of the first player, character "o" (ASCII-code 111) denotes a field occupied with chip of the second player, character "." (ASCII-code 46) describes empty cell.

The line after the table contains two integers x and y (1 ≤ x, y ≤ 9). They describe coordinates of the cell in table where the last move was done. Rows in the table are numbered from up to down and columns are numbered from left to right.

It's guaranteed that cell where the last move was done is filled with "x" or "o". Also, it's guaranteed that there is at least one empty cell. It's not guaranteed that current state of game is reachable.

Output

Output the field in same format with characters "!" (ASCII-code 33) on positions where the current player can put his chip. All other cells should not be modified.

Examples

Input

... ... ...
... ... ...
... ... ...

... ... ...
... ... ...
... x.. ...

... ... ...
... ... ...
... ... ...
6 4


Output

... ... ... 
... ... ... 
... ... ... 

... ... ... 
... ... ... 
... x.. ... 

!!! ... ... 
!!! ... ... 
!!! ... ... 



Input

xoo x.. x..
ooo ... ...
ooo ... ...

x.. x.. x..
... ... ...
... ... ...

x.. x.. x..
... ... ...
... ... ...
7 4


Output

xoo x!! x!! 
ooo !!! !!! 
ooo !!! !!! 

x!! x!! x!! 
!!! !!! !!! 
!!! !!! !!! 

x!! x!! x!! 
!!! !!! !!! 
!!! !!! !!! 



Input

o.. ... ...
... ... ...
... ... ...

... xxx ...
... xox ...
... ooo ...

... ... ...
... ... ...
... ... ...
5 5


Output

o!! !!! !!! 
!!! !!! !!! 
!!! !!! !!! 

!!! xxx !!! 
!!! xox !!! 
!!! ooo !!! 

!!! !!! !!! 
!!! !!! !!! 
!!! !!! !!! 

Note

In the first test case the first player made a move to lower left cell of central field, so the second player can put a chip only to cells of lower left field.

In the second test case the last move was done to upper left cell of lower central field, however all cells in upper left field are occupied, so the second player can put his chip to any empty cell.

In the third test case the last move was done to central cell of central field, so current player can put his chip to any cell of central field, which is already occupied, so he can move anywhere. Pay attention that this state of the game is unreachable.

Solution (in JAVA):

Solution:
import java.io.IOException;
import java.io.InputStream;
import java.math.BigInteger;
import java.util.HashSet;
import java.util.InputMismatchException;
import java.util.Set;
import java.util.TreeSet;

public class CFB {
    static FastScanner sc;
    static char[][] xs;
    static Set<Integer> set;

    public static void main(String[] args) {
        sc = new FastScanner(System.in);

        char x = 120;
        char o = 111;
        char dot = 46;
        char exc = 33;

//        System.out.println(x);
//        System.out.println(o);
//        System.out.println(dot);
//        System.out.println(exc);

        xs = new char[9][9];
        for (int i = 0; i < 9; i++) {
            String line = sc.nextLine();
            xs[i][0] = line.charAt(0);
            xs[i][1] = line.charAt(1);
            xs[i][2] = line.charAt(2);

            xs[i][3] = line.charAt(4);
            xs[i][4] = line.charAt(5);
            xs[i][5] = line.charAt(6);

            xs[i][6] = line.charAt(8);
            xs[i][7] = line.charAt(9);
            xs[i][8] = line.charAt(10);
        }
        int xi = sc.nextInt(); //1..
        int yi = sc.nextInt(); //1..

        int xBig = (xi - 1) % 3;
        int yBig = (yi - 1) % 3;

        boolean busy = true;
        for (int i = 0; i < 3; i++) { //line
            for (int j = 0; j < 3; j++) { //col
                if (xs[xBig*3 + i][yBig*3 + j] == dot) {
                    xs[xBig*3 + i][yBig*3 + j] = exc;
                    busy = false;
                }
            }
        }

        if (busy) {
            for (int i = 0; i < 9; i++) {
                for (int j = 0; j < 9; j++) {
                    if (xs[i][j] == dot) {
                        xs[i][j] = exc;
                    }
                }
            }
        }

        System.out.println("" + xs[0][0] + xs[0][1] + xs[0][2] + " " + xs[0][3] + xs[0][4] + xs[0][5] + " " + xs[0][6] + xs[0][7] + xs[0][8]);
        System.out.println("" + xs[1][0] + xs[1][1] + xs[1][2] + " " + xs[1][3] + xs[1][4] + xs[1][5] + " " + xs[1][6] + xs[1][7] + xs[1][8]);
        System.out.println("" + xs[2][0] + xs[2][1] + xs[2][2] + " " + xs[2][3] + xs[2][4] + xs[2][5] + " " + xs[2][6] + xs[2][7] + xs[2][8]);
        System.out.println();
        System.out.println("" + xs[3][0] + xs[3][1] + xs[3][2] + " " + xs[3][3] + xs[3][4] + xs[3][5] + " " + xs[3][6] + xs[3][7] + xs[3][8]);
        System.out.println("" + xs[4][0] + xs[4][1] + xs[4][2] + " " + xs[4][3] + xs[4][4] + xs[4][5] + " " + xs[4][6] + xs[4][7] + xs[4][8]);
        System.out.println("" + xs[5][0] + xs[5][1] + xs[5][2] + " " + xs[5][3] + xs[5][4] + xs[5][5] + " " + xs[5][6] + xs[5][7] + xs[5][8]);
        System.out.println();
        System.out.println("" + xs[6][0] + xs[6][1] + xs[6][2] + " " + xs[6][3] + xs[6][4] + xs[6][5] + " " + xs[6][6] + xs[6][7] + xs[6][8]);
        System.out.println("" + xs[7][0] + xs[7][1] + xs[7][2] + " " + xs[7][3] + xs[7][4] + xs[7][5] + " " + xs[7][6] + xs[7][7] + xs[7][8]);
        System.out.println("" + xs[8][0] + xs[8][1] + xs[8][2] + " " + xs[8][3] + xs[8][4] + xs[8][5] + " " + xs[8][6] + xs[8][7] + xs[8][8]);
    }

    private static void dfs(int nr, int mark, int[][] as) {
        set.add(nr);
        for (int i = 0; i < as.length; i++) { //0-2
            if (mark << ~i < 0) continue;

            for (int j = 0; j < 6; j++) {
                dfs(nr * 10 + as[i][j], mark | 1 << i, as);
            }
        }
    }

    //********************************************************************************************
    //********************************************************************************************
    //********************************************************************************************

    private static int ceil(double d) {
        int ret = (int) d;
        return ret == d ? ret : ret + 1;
    }

    private static int round(double d) {
        return (int) (d + 0.5);
    }

    @SuppressWarnings("SameParameterValue")
    private static <T> T elvis(T obj, T defValue) {
        return obj == null ? defValue : obj;
    }

    private static int gcd(int a, int b) {
        BigInteger b1 = BigInteger.valueOf(a);
        BigInteger b2 = BigInteger.valueOf(b);
        BigInteger gcd = b1.gcd(b2);
        return gcd.intValue();
    }

    private static int[] readIntArray(int n) {
        int[] res = new int[n];
        for (int i = 0; i < n; i++) {
            res[i] = sc.nextInt();
        }
        return res;
    }

    private static long[] readLongArray(int n) {
        long[] res = new long[n];
        for (int i = 0; i < n; i++) {
            res[i] = sc.nextLong();
        }
        return res;
    }

    @SuppressWarnings("unused")
    static class FastScanner {
        private InputStream stream;
        private byte[] buf = new byte[1024];
        private int curChar;
        private int numChars;

        FastScanner(InputStream stream) {
            this.stream = stream;
        }

        int read() {
            if (numChars == -1)
                throw new InputMismatchException();
            if (curChar >= numChars) {
                curChar = 0;
                try {
                    numChars = stream.read(buf);
                } catch (IOException e) {
                    throw new InputMismatchException();
                }
                if (numChars <= 0) return -1;
            }
            return buf[curChar++];
        }

        boolean isSpaceChar(int c) {
            return c == ' ' || c == '\n' || c == '\r' || c == '\t' || c == -1;
        }

        boolean isEndline(int c) {
            return c == '\n' || c == '\r' || c == -1;
        }

        public int nextInt() {
            return Integer.parseInt(next());
        }

        public long nextLong() {
            return Long.parseLong(next());
        }

        public double nextDouble() {
            return Double.parseDouble(next());
        }

        public String next() {
            int c = read();
            while (isSpaceChar(c)) c = read();
            StringBuilder res = new StringBuilder();
            do {
                res.appendCodePoint(c);
                c = read();
            } while (!isSpaceChar(c));
            return res.toString();
        }

        public String nextLine() {
            int c = read();
            while (isEndline(c))
                c = read();
            StringBuilder res = new StringBuilder();
            do {
                res.appendCodePoint(c);
                c = read();
            } while (!isEndline(c));
            return res.toString();
        }
    }
}