#include <bits/stdc++.h>
using namespace std;
int N,M,X,Y,x[105],y[105];
int main()
{
	int i;
	cin>>N>>M>>X>>Y;
	for (i=1;i<=N;i++) cin>>x[i];
	for (i=1;i<=M;i++) cin>>y[i];
	sort(x+1,x+N+1);sort(y+1,y+M+1);
	for (i=X+1;i<=Y;i++) if (i>x[N]&&i<=y[1]) break;
	if (i==Y+1) cout<<"War";
	else cout<<"No War";
}