#include<iostream>
using namespace std;

int main(){
	int m,n,x,y,maxx=-999999999,tmp,minn=999999999;
	cin>>m>>n>>x>>y;
	for(int i=1;i<=m;++i){
		cin>>tmp;
		if(maxx<tmp)	maxx=tmp;
	}
	for(int i=1;i<=n;++i){
		cin>>tmp;
		if(minn>tmp)	minn=tmp;
	}
	for(int i=x+1;i<=y;++i)
		if(i>maxx && i<=minn){
			cout<<"No War";
			return 0;
		}	
	cout<<"War";
}