
function Main(inp) {
  
  inp = inp.split('\n').map( x => x.split(' ').map(y => parseInt(y, 10)) );

  let [ N, M, X, Y] = inp[0];
  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'));
