function Main(arg) {
    arg = arg.trim().split('\n');
    x = arg[1].split(' ');
    y = arg[2].split(' ');
    
    x.sort(function(a,b){
        if(Number(a)<Number(b))return -1;
        if(Number(a)>Number(b))return 1;
        return 0;
    });
    y.sort(function(a,b){
        if(Number(a)<Number(b))return -1;
        if(Number(a)>Number(b))return 1;
        return 0;
    });
    if(Number(x[x.length - 1]) < Number(y[0])){
        console.log('No War');
    } else {
        console.log('War');
    }
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));