#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0;i<n;i++)
using ll = long long;
using ull = unsigned long long;
using P = pair<int,int>;
const int INF = 1001001001;

int main(){
  int n;
  cin >> n;
  vector<ll> A(n);
  rep(i,n) cin >> A[i];
  sort(A.begin(),A.end());
  rep(i,n-1){
    if(A[i]!=A[i+1])continue;
    cout << "NO" <<endl;
    return 0;
  }
  cout << "YES" << endl;
  return 0;
}

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

int main()
{
  int n,m,x,y,z;
  string ans="War";
  cin>>n>>m>>x>>y;
  vector<int> a(n);
  vector<int> b(m);
  for(int i=0;i<n;i++)
  {
    cin>>a.at(i);
  }
  for(int i=0;i<m;i++)
  {
    cin>>b.at(i);
  }
  sort(a.begin(),a.end());
  reverse(a.begin(),a.end());
  sort(b.begin(),b.end());
  for(int i=x+1;i<=y;i++)
  {
    if((a.at(0)<i)&&(b.at(0)>=i))
    {
      ans="No War";
      break;
    }
  }
  cout<<ans<<endl;
}