#include <vector>
#include <iostream>
#include <string>
#include <algorithm>
using namespace std;
string solveMeFirst(vector<int>x,vector<int>y){
    int x_max = *max_element(x.begin(), x.end());
    int y_min = *min_element(y.begin(), y.end());
    if (xmax < ymin){
        return "No War";
    }else{
        return "War";
    }
}

int main(){
    int n,m,x,y;
    cin >> n  >>m >> x >> y;
    vector<int> xs,ys;
    int s;
    for(int i = 0; i<n;i++){
        cin >>s;
        xs.push_back(s);
    }
    for(int i = 0; i<m;i++){
        cin >>s;
        ys.push_back(s);
    }
    xs.push_back(x);
    ys.push_back(y);
    string d = solveMeFirst(xs,ys);
    cout << d;
    return 0;
}