#include <bits/stdc++.h>
using namespace std;

int main(){
  int N,M,X,Y;
  cin>>N>>M>>X>>Y;
  int k=X,l=Y;
  for(int i=0;i<N;i++){
    int j=0;
    cin>>j;
    k=max(k,j);
  }
  for(int i=0;i<M;i++){
    int j=0;
    cin>>j;
    l=min(l,j);
  }
  if(k<l)
    cout<<"No War"<<endl;
  else
    cout<<"War"<<endl;
}
#include <bits/stdc++.h>

#define f(i,a,b) for( ll i = a; i < b ; i++ ) 
#define af(i,a,b) for( ll i = a; i >= b ; i--)
#define rep(i,a,b,k) for(ll i = a; i < b ; i+= k )
#define arep(i,a,b,k) for( ll i = a; i >= b ; i-= k)
#define ones(x) (ll) __builtin_popcount(x)
#define fs first
#define sc second
#define pb push_back
#define po pop_back
#define mp make_pair	
#define sz(a) (ll) a.size()
#define all(a) a.begin(), a.end()
#define sor(a) sort( a.begin(), a.end() )
#define fastio ios_base::sync_with_stdio(false);cin.tie(NULL)
#define ller ios::sync_with_stdio(false);cin.tie(nullptr);cout.tie(nullptr)
#define yes cout<<"Yes\n"
#define no cout<<"No\n"

using namespace std;
typedef long long ll;
typedef long double ld;	
typedef pair<ll,ll> ii ;
typedef vector<ll>  vi ;
typedef vector<ii> vii ;
	 
const ll MAX = 10000000;
const ll inf = 5e18-1;

int main() {
	fastio;
	ll h,w,a,b;
	cin >> h >> w >> a >> b;
	f(i,0,h){
		f(j,0,w){
			ll x = ((i < b)^(j < a));
			cout << x;
		}
		cout << '\n';
	}
	return 0;
	}