#include<iostream>
#include<math.h>
using namespace std;
int n,x,y,h,w,d,e,s,v;
  
double j(int a,int b){return sqrt(a*a+b*b+0.0);}
int main(){
    while(1){
		bool ok=1;
        cin>>n>>h>>w>>d>>e;
        if(!n)break;
		cin>>s>>v;
		if(j(h-s,w-v)>=j(d-s,e-v))ok=0;
        for(int i=1;i<n;i++){
            cin>>x>>y;
			if(j(h-s,w-v)+j(s-x,v-y)>=j(d-x,e-y))ok=0;
        }
        if(ok) cout << "YES" << endl;
        else cout << "NO" << endl;
    }
    return 0;
}