#include <bits/stdc++.h>
#define FOR(I,X,Y) for(int (I)=(X);(I)<(Y);(I)++)
#define REP(I,X,Y) for(int (I)=(Y)-1;(I)>=(X);(I)--)
#define ALL(X) (X).begin(),(X).end()
#define INF 1000000007
#define LINF 1000000000000000007
typedef long long ll;
using namespace std;

int main(){
  int N,M,X,Y,maxx=-INF,miny=INF,x,y;
  cin >> N >> M >> X >> Y;
  FOR(i,0,N){
    cin >> x;
    maxx = max(maxx,x);
  }
  FOR(i,0,M){
    cin >> y;
    miny = min(miny,y);
  }
  bool ans = 0;
  FOR(i,maxx+1,miny+1){
    if(X < i && i <= Y)ans = true;
  }
  cout << (!ans ? "War" : "No War") << endl;
}
