inp = require('fs').readFileSync('/dev/stdin', 'utf8').split('\n')
l = inp.shift().split(' ')
N = l.shift() * 1
M = l.shift() * 1
X = l.shift() * 1
Y = l.shift() * 1
xa = inp.shift().split(' ')
xa.push(X)
ya = inp.shift().split(' ')
ya.push(Y)
l = X
r = Y
for (i=0; i<N; i++) {
    if (l < xa[i] * 1) {
        l = xa[i] * 1
    }
}
for (i=0; i<M; i++) {
    if (r > ya[i] * 1) {
        r = ya[i] * 1
    }
}
if (l < r) {
    console.log('No War')
} else {
    console.log('War')
}

