Problem: This is an interactive problem.

Alice and Bob are playing a game on the chessboard of size n × m where n and m are even. The rows are numbered from 1 to n and the columns are numbered from 1 to m. There are two knights on the chessboard. A white one initially is on the position (x_1, y_1), while the black one is on the position (x_2, y_2). Alice will choose one of the knights to play with, and Bob will use the other one.

The Alice and Bob will play in turns and whoever controls the white knight starts the game. During a turn, the player must move their knight adhering the chess rules. That is, if the knight is currently on the position (x, y), it can be moved to any of those positions (as long as they are inside the chessboard):

(x+1, y+2), (x+1, y-2), (x-1, y+2), (x-1, y-2),

(x+2, y+1), (x+2, y-1), (x-2, y+1), (x-2, y-1). 

We all know that knights are strongest in the middle of the board. Both knight have a single position they want to reach: 

  * the owner of the white knight wins if it captures the black knight or if the white knight is at (n/2, m/2) and this position is not under attack of the black knight at this moment; 
  * The owner of the black knight wins if it captures the white knight or if the black knight is at (n/2+1, m/2) and this position is not under attack of the white knight at this moment. 



Formally, the player who captures the other knight wins. The player who is at its target square ((n/2, m/2) for white, (n/2+1, m/2) for black) and this position is not under opponent's attack, also wins.

A position is under attack of a knight if it can move into this position. Capturing a knight means that a player moves their knight to the cell where the opponent's knight is.

If Alice made 350 moves and nobody won, the game is a draw.

Alice is unsure in her chess skills, so she asks you for a help. Choose a knight and win the game for her. It can be shown, that Alice always has a winning strategy.

Interaction

The interaction starts with two integers n and m (6 ≤ n,m ≤ 1000, n and m are even) — the dimensions of the chessboard.

The second line contains four integers x_1, y_1, x_2, y_2 (1 ≤ x_1, x_2 ≤ n, 1 ≤ y_1, y_2 ≤ m) — the positions of the white and the black knight. It is guaranteed that the two knights have different starting positions. It is also guaranteed that none of the knights are in their own target square in the beginning of the game (however, they can be on the opponent's target position).

Your program should reply with either "WHITE" or "BLACK", depending on the knight you want to play with. In case you select the white knight, you start the game.

During every your turn, you need to print two integers: x and y, the position to move the knight. If you won the game by this turn, you must terminate your program immediately.

After every turn of the opponent, you will receive two integers: x and y, the position where Bob moved his knight.

If your last move was illegal or you lost the game after jury's turn, or you made 350 moves, and haven't won, you will receive "-1 -1". In such cases, you should terminate your program and then you will get a Wrong Answer verdict.

After printing anything, do not forget to output the end of line and flush the output. Otherwise, you might get Idleness limit exceeded. To do this, use:

  * fflush(stdout) or cout.flush() in C++;
  * System.out.flush() in Java;
  * flush(output) in Pascal;
  * stdout.flush() in Python;
  * see documentation for other languages.



Hacks are disabled for this problem.

Jury's program is adaptive: the moves of jury may depend on the moves made by your program.

Examples

Input


8 8
2 3 1 8


Output


WHITE
4 4


Input


6 6
4 4 2 2
6 3

Output


BLACK
4 3

Note

In the first example, the white knight can reach it's target square in one move.

In the second example black knight wins, no matter what white knight moves.

Solution (in CPP):

Solution:
#include <bits/stdc++.h>
using namespace std;
const string COLORS[2] = {"WHITE", "BLACK"};
const int LIMIT = 1024;
const int INF = 1e9 + 5;
const int DIRS = 8;
const int DR[] = {-2, -2, -1, -1, +1, +1, +2, +2};
const int DC[] = {-1, +1, -2, +2, -2, +2, -1, +1};
int N, M;
int encode(int r, int c) { return r * LIMIT + c; }
pair<int, int> decode(int encoded) {
  return {encoded / LIMIT, encoded % LIMIT};
}
bool valid(int r, int c) { return 1 <= r && r <= N && 1 <= c && c <= M; }
bool valid(int encoded) {
  pair<int, int> p = decode(encoded);
  return valid(p.first, p.second);
}
int parity(int r, int c) { return (r + c) % 2; }
int parity(int encoded) {
  pair<int, int> p = decode(encoded);
  return parity(p.first, p.second);
}
int V;
vector<vector<int>> adj;
void bfs_check(queue<int> &q, queue<int> &next_q, vector<int> &dist,
               vector<int> &previous, int node, int current_dist, int add,
               int from) {
  assert(0 <= add && add <= 1);
  if (current_dist < dist[node]) {
    dist[node] = current_dist;
    previous[node] = from;
    (add == 0 ? q : next_q).push(node);
  }
}
void bfs(int source, vector<int> &dist, vector<int> &previous) {
  if (V == 0) return;
  queue<int> q, next_q;
  dist.assign(V, INF);
  previous.assign(V, -1);
  bfs_check(q, next_q, dist, previous, source, 0, 0, -1);
  int level = 0;
  while (!q.empty() || !next_q.empty()) {
    while (!q.empty()) {
      int top = q.front();
      q.pop();
      if (level > dist[top]) continue;
      for (int neighbor : adj[top])
        bfs_check(q, next_q, dist, previous, neighbor, dist[top] + 1, 1, top);
    }
    swap(q, next_q);
    level++;
  }
}
int positions[2];
int goals[2];
vector<int> dist[2];
vector<int> previous[2];
void output(int r, int c) { cout << r << ' ' << c << endl; }
void output(int encoded) {
  pair<int, int> p = decode(encoded);
  output(p.first, p.second);
}
void go_directly(int who) {
  cout << COLORS[who] << endl;
  int position = positions[who], turn = 0;
  while (true) {
    if (turn != who) {
      int x, y;
      cin >> x >> y;
      turn = 1 - turn;
      continue;
    }
    int next_position = previous[who][position];
    output(next_position);
    position = next_position;
    if (position == goals[who]) return;
    turn = 1 - turn;
  }
}
vector<bool> good;
void compute_good() {
  good.assign(V, false);
  for (int i = 0; i < V; i++)
    if (i != goals[0] && i != goals[1] && dist[0][i] + dist[1][i] == 3)
      good[i] = true;
}
bool has_neighbor(int me, int them) {
  for (int neighbor : adj[me])
    if (neighbor == them) return true;
  return false;
}
void block_and_win(int who) {
  cout << COLORS[who] << endl;
  int other = 1 - who;
  int position = positions[who], other_position = positions[other];
  compute_good();
  for (int turn = 0;; turn = 1 - turn) {
    if (turn != who) {
      int x, y;
      cin >> x >> y;
      other_position = encode(x, y);
      continue;
    }
    if (has_neighbor(position, other_position)) {
      output(other_position);
      return;
    }
    if (has_neighbor(position, goals[who])) {
      output(goals[who]);
      return;
    }
    if (dist[other][position] > 1) {
      int next_position = previous[other][position];
      output(next_position);
      position = next_position;
      continue;
    }
    bool found_good = false;
    for (int neighbor : adj[position])
      if (good[neighbor]) {
        output(neighbor);
        position = neighbor;
        found_good = true;
        break;
      }
    if (found_good) continue;
    if (has_neighbor(position, goals[other])) {
      output(goals[other]);
      position = goals[other];
      continue;
    }
    assert(false);
  }
}
int main() {
  ios::sync_with_stdio(false);
  cin >> N >> M;
  int R1, C1, R2, C2;
  cin >> R1 >> C1 >> R2 >> C2;
  positions[0] = encode(R1, C1);
  positions[1] = encode(R2, C2);
  V = encode(N, M) + 1;
  adj.assign(V, {});
  for (int r = 1; r <= N; r++)
    for (int c = 1; c <= M; c++) {
      int encoded = encode(r, c);
      for (int dir = 0; dir < DIRS; dir++) {
        int nr = r + DR[dir];
        int nc = c + DC[dir];
        int n_encoded = encode(nr, nc);
        if (valid(n_encoded)) adj[encoded].push_back(n_encoded);
      }
    }
  goals[0] = encode(N / 2, M / 2);
  goals[1] = encode(N / 2 + 1, M / 2);
  bfs(goals[0], dist[0], previous[0]);
  bfs(goals[1], dist[1], previous[1]);
  int right = 0;
  int wrong = 1;
  if (parity(positions[0]) == parity(positions[1])) swap(right, wrong);
  int wrong_to_wrong = dist[wrong][positions[wrong]];
  int right_to_right = dist[right][positions[right]] + (wrong == 0 ? 1 : 0);
  int right_to_wrong = dist[wrong][positions[right]] - (wrong == 1 ? 1 : 0);
  if (wrong_to_wrong < min(right_to_right, right_to_wrong)) {
    go_directly(wrong);
    exit(0);
  }
  block_and_win(right);
}