#include <iostream>
using namespace std;

int main() {
    int n, m, a, b, x, y;
    cin >> n >> m >> a >> b;
    for(int i=0; i<n; i++) {
        cin >> x;
        if(x>a) a = x;
    }
    for(int i=0; i<m; i++) {
        cin >> y;
        if(y<b) b = y;
    }

    if(b>a) cout << "No War" << endl;
    else cout << "War" << endl;
    return 0;
}
