function main(input) {
  var inputs = input.split('\n');
  var origin = inputs[0].split(' ');
  var xarrs = inputs[1].split(' ');
  var yarrs = inputs[2].split(' ');
  var z;
  
  xarrs.push(origin[2]);
  yarrs.push(origin[3]);
  
  xarrs = xarrs.sort();
  yarrs = yarrs.sort();
  
  z = yarrs[0];
  if(xarrs[xarrs.length-1] < z) {console.log("No War"); return true};
  
  console.log("War");
  return false;
  
  
}

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