
function Main(input) {

  let inp = ((inp) => {
    const tmp = inp.split('\n');
    let tmp1 = new Array();
    for(let i=0;i<tmp.length;++i)
      tmp1.push(tmp[i].split(' ').map( x => parseInt(x, 10) ));
    return tmp1;
  })(input);

  console.log(inp);
  let N = inp[0][0], M = inp[0][1], X = inp[0][2], Y = inp[0][3];
  let x = inp[1], y = inp[2];

  let maxX = X, minY = Y;
  for(let i=0;i<N;++i)maxX = Math.max(maxX, x[i]);
  for(let i=0;i<M;++i)minY = Math.min(minY, y[i]);

  if(maxX < minY)console.log('No War');
  else console.log('War');
}

Main(require('fs').readFileSync('/dev/stdin', 'utf8'));
