#include<cstdio>
#include<algorithm>
using namespace std;
int main(){
	int n, m, x, y, a[105], b[105], maxm = -101, minn = 101;
	scanf("%d %d %d %d", &n, &m, &x, &y);
	for(int i = 1;i <= n;i++){
		scanf("%d", &a[i]);
		if(a[i] > maxm) maxm = a[i];
	}
	for(int i = 1;i <= m;i++){
		scanf("%d", &b[i]);
		if(b[i] < minn) minn = b[i];
	}
	int e = max(maxm, x);
	int f = min(minn, y);
	if(e < f) printf("No War\n");
	else printf("War\n");
	return 0;
}