Problem: Boboniu likes playing chess with his employees. As we know, no employee can beat the boss in the chess game, so Boboniu has never lost in any round.

You are a new applicant for his company. Boboniu will test you with the following chess question:

Consider a n× m grid (rows are numbered from 1 to n, and columns are numbered from 1 to m). You have a chess piece, and it stands at some cell (S_x,S_y) which is not on the border (i.e. 2 ≤ S_x ≤ n-1 and 2 ≤ S_y ≤ m-1).

From the cell (x,y), you can move your chess piece to (x,y') (1≤ y'≤ m, y' ≠ y) or (x',y) (1≤ x'≤ n, x'≠ x). In other words, the chess piece moves as a rook. From the cell, you can move to any cell on the same row or column.

Your goal is to visit each cell exactly once. Can you find a solution?

Note that cells on the path between two adjacent cells in your route are not counted as visited, and it is not required to return to the starting point.

Input

The only line of the input contains four integers n, m, S_x and S_y (3≤ n,m≤ 100, 2 ≤ S_x ≤ n-1, 2 ≤ S_y ≤ m-1) — the number of rows, the number of columns, and the initial position of your chess piece, respectively.

Output

You should print n⋅ m lines.

The i-th line should contain two integers x_i and y_i (1 ≤ x_i ≤ n, 1 ≤ y_i ≤ m), denoting the i-th cell that you visited. You should print exactly nm pairs (x_i, y_i), they should cover all possible pairs (x_i, y_i), such that 1 ≤ x_i ≤ n, 1 ≤ y_i ≤ m.

We can show that under these constraints there always exists a solution. If there are multiple answers, print any.

Examples

Input


3 3 2 2


Output


2 2
1 2
1 3
2 3
3 3
3 2
3 1
2 1
1 1


Input


3 4 2 2


Output


2 2
2 1
2 3
2 4
1 4
3 4
3 3
3 2
3 1
1 1
1 2
1 3

Note

Possible routes for two examples:

<image>

Solution (in JAVA):

Solution:
import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.InputMismatchException;
import java.io.IOException;
import java.io.InputStream;

/**
 * Built using CHelper plug-in
 * Actual solution is at the top
 *
 * @author sumit
 */
public class Main {
    public static void main(String[] args) {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        InputReader in = new InputReader(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        BBoboniuPlaysChess solver = new BBoboniuPlaysChess();
        solver.solve(1, in, out);
        out.close();
    }

    static class BBoboniuPlaysChess {
        int currx;
        int curry;
        int n;
        int m;
        boolean[][] vis;

        int moveLeft() {
            if (currx > 1) {
                currx--;
                if (vis[curry][currx]) {
                    return 1;
                }
                vis[curry][currx] = true;
                return 2;
            }
            return 0;
        }

        int moveRight() {
            if (currx < m) {
                currx++;
                if (vis[curry][currx])
                    return 1;
                vis[curry][currx] = true;
                return 2;
            }
            return 0;
        }

        int moveup() {
            if (curry > 1) {
                curry--;
                if (vis[curry][currx])
                    return 1;
                vis[curry][currx] = true;
                return 2;
            }
            return 0;

        }

        int movedown() {
            if (curry < n) {
                curry++;
                if (vis[curry][currx])
                    return 1;
                vis[curry][currx] = true;
                return 2;
            }
            return 0;
        }

        public void solve(int testNumber, InputReader in, PrintWriter out) {
            n = in.nextInt();
            m = in.nextInt();
            int x = in.nextInt();
            int y = in.nextInt();

            curry = x;
            currx = y;
            vis = new boolean[n + 1][m + 1];
            vis[x][y] = true;
            int count = 0;
            StringBuilder sb = new StringBuilder();
            while (true) {
                sb.append(curry);
                sb.append(" ");
                sb.append(currx);
                sb.append("\n");
                count++;
                if (moveup() != 2) {
                    break;
                }
            }

            while (moveLeft() == 2) {
                sb.append(curry);
                sb.append(" ");
                sb.append(currx);
                sb.append("\n");
                count++;
            }


            boolean first = true;
            int odd = 0;
            while (count != n * m) {
                if (!first) {
                    sb.append(curry);
                    sb.append(" ");
                    sb.append(currx);
                    sb.append("\n");
                    count++;
                }
                first = false;

                int vv = 1;
                while (vv == 1) {
                    if (odd % 2 == 1)
                        vv = moveLeft();
                    else
                        vv = moveRight();
                }
                if (vv == 2) {
                    continue;
                }

                vv = 1;
                while (vv == 1) {
                    vv = movedown();
                    odd++;
                }
            }

            out.println(sb.toString());

        }

    }

    static class InputReader {
        private InputStream stream;
        private byte[] buf = new byte[1024];
        private int curChar;
        private int numChars;

        public InputReader(InputStream stream) {
            this.stream = stream;
        }

        public 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++];
        }

        public int nextInt() {
            int c = read();

            while (isSpaceChar(c))
                c = read();

            int sgn = 1;

            if (c == '-') {
                sgn = -1;
                c = read();
            }

            int res = 0;

            do {
                if (c < '0' || c > '9')
                    throw new InputMismatchException();

                res *= 10;
                res += c & 15;

                c = read();
            } while (!isSpaceChar(c));

            return res * sgn;
        }

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

    }
}