#include <iostream>
#include <algorithm>
#include <cmath>

using namespace std;

int main(){
  double x[3], y[3], p[2];

  while(cin >> x[0] >> y[0]){
    for(int i = 1; i < 3; i++){
      cin >> x[i] >> y[i];
    }
    cin >> p[0] >> p[1];

    // pを(0,0)として三角形の位置をづらす
    for(int i = 0; i < 3; i++){
      x[i] -= p[0];
      y[i] -= p[1];
    }

    // 上下左右の判定
    bool under = false;
    bool top = false;
    bool side[2] = {false};
    for(int i = 0; i < 3; i++){
      if(y[i] > 0){
	under = true;
      }
      if(y[i] < 0){
	top = true;
      }
      if(x[i] > 0){
	side[0] = true;
      }
      if(x[i] < 0){
	side[1] = true;
      }
    }

    if(under && top && side[0] && side[1]){
      cout << "YES" << endl;
    }
    else{
      cout << "NO" << endl;
    }
  }
  return 0;
}