#include <bits/stdc++.h>
using namespace std;
int main()
{int s[200],s1[200],n,m,x,y;
cin>>n>>m>>x>>y;
 for(int i=1;i<=n;i++)
    cin>>s[i];
 for(int i=1;i<=m;i++)
    cin>>s1[i];
 sort(s+1,s+1+n);
 sort(s1+1,s1+1+m);
 if(s[n]+1>s1[1])cout<<"War";
 else if(s1[1]>y&&s[n]+1<=y||s1[1]>x&&s1[1]<y)cout<<"No War";
 else cout<<"War";
}

