#include <iostream>
#include <algorithm>
#include <cmath>
using namespace std;

int main(){
  int n, m, x, y;
  cin >> n >> m >> x >> y;
  int a[n], b[m];
  for(int i=0; i<n; i++){
    cin >> a[i];
  }
  for(int i=0; i<m; i++) cin >> b[i];
  sort(a, a+n);
  sort(b, b+m);
  if(min(b[0], y)>max(a[n-1], x)) cout << "No War" << endl;
  else cout << "War" << endl;
}
