function main(input) {
  const args = input.split('\n');
  const ary1 = args[0].split(' ').map(n => parseInt(n, 10));
  const ary2 = args[1].split(' ').map(n => parseInt(n, 10));
  const ary3 = args[2].split(' ').map(n => parseInt(n, 10));
  const W = ary1[0],
        H = ary1[1],
        X = ary1[2],
        Y = ary1[3];
  let ans = 'War';
  
  for (let z = (X+1); z <= Y; z++) {
    if (checkX(z) && checkY(z)) { ans = 'No War'; }
  }
  
  function checkX(z) {
    bool = true;
    for (let i = 0; i < ary2.length; i++) {
      if (ary2[i] >= z) { bool = false }
    }
    return bool;
  }
  
  function checkY(z) {
    bool = true;
    for (let i = 0; i < ary3.length; i++) {
      if (ary3[i] < z) { bool = false }
    }
    return bool;
  }
  
  console.log(ans);
}

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