function main(input) {
  var N = input[0].split(" ")[0]-0;
  var M = input[0].split(" ")[1]-0;
  var X = input[0].split(" ")[2]-0;
  var Y = input[0].split(" ")[3]-0;
  var alist = input[1].split(" ").map(v=>v-0).sort((a,b)=>a-b);
  var blist = input[2].split(" ").map(v=>v-0).sort((a,b)=>a-b);
  var amax = alist[alist.length-1];
  var bmin = blist[0];
  var ans = "War";
  for(var i=X+1;i<=Y;i++){
    if(amax<i && bmin>=i){
      ans = "No War";
      break;
    }
  }
  console.log(ans);
}
main(require('fs').readFileSync('/dev/stdin', 'utf8').trim().split("\n"))
