#include<iostream>
#include<cstdio>
#include<cmath>
using namespace std;
int main(){
  double x1,x2,x3,y1,y2,y3,x,y;
  double a,b,c,s,ans;
  while(scanf("%lf %lf %lf %lf %lf %lf %lf %lf",&x1,&x2,&x3,&y1,&y2,&y3,&x,&y)!=EOF){
    a=sqrt((x2-x1)*(x2-x1)+(y2-y1)*(y2-y1));
    b=sqrt((x3-x1)*(x3-x1)+(y3-y1)*(y3-y1));
    c=sqrt((x3-x2)*(x3-x2)+(y3-y2)*(y3-y2));
    if(a>x&&b>x&&c>x&&y<a&&y<b&&y<c){
      cout << "YES" << endl;
    }else{
      cout << "NO" << endl;
    }
  }
  return 0;
}