#include <iostream>
using namespace std;
int n, m, x, y, a, mx, my;
int main() {
	cin>>n>>m>>x>>y;
	mx = x, my = y;
	while(n--) {
		cin>>a;
		mx = max(mx, a);
	}
	while(m--) {
		cin>>a;
		my = min(my, a);
	}
	cout<<(mx<my ? "No " : "")<<"War";
	return 0;
}