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

int main() {
  int N, M, X, Y;
  cin >> N >> M >> X >> Y;

  int mxi = X;

  for (int i = 0; i < N; i++) {
    int x;
    cin >> x;
    mxi = max(mxi, x);
  }

  int mni = Y;

  for (int i = 0; i < M; i++) {
    int y;
    cin >> y;
    mni = min(mni, y);
  }

  cout << ((mxi < mni) ? "No War" : "War") << "\n";
}