Problem: Peace, which was supposed to last forever, suddenly ended. The Demon King, who had been sealed long ago, has finally revived. But when the world was about to be covered in darkness, a brave man appeared. The hero then set out on a journey to collect legendary crystals scattered around the world. Legend has it that if you can collect all the crystals, you can summon the legendary dragon god who can fulfill any wish. With the help of the dragon god, it should be possible to defeat the Demon King.

Crystals are scattered all over the world. The hero needs to collect them one by one by his own hands. This is because if someone other than the hero gets the crystal, it may be stolen by the Demon King's minions. A hero can travel only one Euclidean distance per day.

But there is one serious problem here. The Demon King constantly disperses the darkness of the miasma, and the place contaminated with the miasma turns into a land of death that no one can enter. Even a brave man cannot enter the place. Furthermore, since the miasma spreads concentrically with time, the area where the hero can move decreases with the passage of time. Miasma has been confirmed to spread by an Euclidean distance of 1 per day. And the hero cannot take the crystal on the boundary line. We also know that the newly resurrected Demon King will not move to store power.

The hero must get the crystal as soon as possible. But if it's not possible to get all the crystals, you'll have to think of another way. Therefore, I would like you to create a program to find out if you can get all the crystals from the initial position of the hero, the place where the demon king was resurrected, and the position where the crystals exist.

By the way, the brave does not get tired. And I don't sleep. Keep moving and collect crystals until you collect all the crystals and save the world! !!



Input

The input consists of multiple test cases. The first line of each test case gives the five integers n (0 <n <= 20), hx, hy, dx, and dy. n is the number of crystals, (hx, hy) is the position of the hero at the moment the Demon King was resurrected, and (dx, dy) is the position where the Demon King was resurrected. The n lines that follow are given the two integers cx, cy, that represent the position of each crystal. Input ends when n = hx = hy = dx = dy = 0, which is not included in the test case.

All coordinates given in the input are guaranteed to be integers with an absolute value of 1000 or less.

Output

For each test case, output "YES" if you can collect all the crystals, and "NO" if not.

Example

Input

2 0 0 10 10
1 1
4 4
2 0 0 10 10
1 1
6 6
2 0 0 10 10
1 1
5 5
0 0 0 0 0


Output

YES
NO
NO

Solution (in CPP):

Solution:
#include <iostream>
#include <cstdio>
#include <vector>
#include <list>
#include <complex>
#include <algorithm>
#include <set>
#include <map>
#include <queue>
#include <string>
#include <cstring>
#include <stack>
#include <cmath>
#include <iomanip>
#include <sstream>
#include <cassert>
#include <numeric>
using namespace std;
typedef long long ll;
typedef ll li;
typedef pair<int,int> PI;
#define EPS (1e-6)
#define rep(i,n) for(int i=0;i<(int)(n);++i)
#define REP(i, n) rep (i, n)
#define F first
#define S second
#define mp(a,b) make_pair(a,b)
#define pb(a) push_back(a)
#define SZ(a) (int)((a).size())
#define ALL(a) a.begin(),a.end()
#define FLL(a,b) memset((a),b,sizeof(a))
#define CLR(a) memset((a),0,sizeof(a))
#define FOR(it,a) for(__typeof(a.begin())it=a.begin();it!=a.end();++it)
template<typename T,typename U> ostream& operator<< (ostream& out, const pair<T,U>& val){return out << "(" << val.F << ", " << val.S << ")";}
template<class T> ostream& operator<< (ostream& out, const vector<T>& val){out << "{";rep(i,SZ(val)) out << (i?", ":"") << val[i];return out << "}";}
typedef double FP;
typedef complex<FP> pt;
typedef pt P;
typedef pair<pt,pt> line;
FP dot(P a,P b){return (conj(a)*b).real();}
FP crs(P a,P b){return (conj(a)*b).imag();}
P crspt(P a,P b,P c,P d){b-=a,d-=c;return a+b*crs(d,c-a)/crs(d,b);}
bool onl(P a1,P a2,P b){return abs(b-a1)+abs(b-a2)<abs(a1-a2)+EPS;}
void pkuassert(bool t){t=1/t;};
int dx[]={0,1,0,-1,1,1,-1,-1};
int dy[]={1,0,-1,0,-1,1,1,-1};
/*
enum{TOP,BTM,LFT,RGT,FRT,BCK};
int dxdy2ce[]={RGT,FRT,LFT,BCK};
template<class T> T shift(T a,int b,int c,int d,int e){
  __typeof(a[0])t=a[b];
  a[b]=a[c];a[c]=a[d];a[d]=a[e];a[e]=t;return a;}
template<class T> T rgtin(T a){return shift(a,TOP,LFT,BTM,RGT);}
template<class T> T lftin(T a){return shift(a,TOP,RGT,BTM,LFT);}
template<class T> T frtin(T a){return shift(a,TOP,BCK,BTM,FRT);}
template<class T> T bckin(T a){return shift(a,TOP,FRT,BTM,BCK);}
*/

int n;
int hx,hy,mx,my;
int cx[20],cy[20];
map<PI,double> cost;

bool dfs(int cv,int vis,double cc){
  if(cost.count(mp(cv,vis)) &&
     cost[mp(cv,vis)]<=cc+EPS) return false;
  if(vis==(1<<n)-1) return true;
  //cout << cv << ' ' << vis << ' ' << cc << endl;
  cost[mp(cv,vis)] = cc;
  rep(i,n){
    if((vis>>i)&1) continue;
    if(cc+abs(pt(cx[i],cy[i])-pt(cx[cv],cy[cv]))+EPS>
       abs(pt(cx[i],cy[i])-pt(mx,my))) return false;
  }
  
  rep(i,n){
    if((vis>>i)&1) continue;
    if(dfs(i,vis|1<<i,cc+abs(P(cx[cv],cy[cv])-P(cx[i],cy[i]))))
      return true;
  }
    
  return false;
}

void solve(){
  cin >> hx >> hy >> mx >> my;
  rep(i,n) cin >> cx[i] >> cy[i];
  //rep(i,n)rep(j,(1<<n)) cost[i][j] = 1<<20;
  cost.clear();
  rep(i,n){
    if(abs(P(mx,my)-P(cx[i],cy[i]))>
       abs(P(cx[i],cy[i])-P(hx,hy))+EPS &&
       dfs(i,1<<i,abs(P(cx[i],cy[i])-P(hx,hy)))){
      cout << "YES" << endl;
      return;
    }
  }
  cout << "NO" << endl;
}

int main(int argc, char *argv[]){
  while(cin >> n && n) solve();
}