#include<iostream>
#include<math.h>
using namespace std;
int n;
int x[30], y[30],h1,h2,d1,d2;
  
double dist(int a, int b){
    return sqrt(a*a+b*b+0.0);
}  
int main(){
    while(1){
		bool ok=true;
        cin >> n;
        if(n == 0) break;
        cin >>h1>>h2>>d1>>d2;
        for(int i=0;i<n;i++){
            cin >> x[i] >> y[i];
			if(dist(h1-x[0],h2-y[0])+dist(x[0]-x[i],y[0]-y[i]) >= dist(d1-x[i],d2-y[i]))ok=false;
        }
  
        if(ok) cout << "YES" << endl;
        else cout << "NO" << endl;
    }
    return 0;
}