#include <iostream>
#include <cmath>
using namespace std;
int main() {
  float x1, y1, x2, y2, x3, y3, px, py;
  while (cin >> x1 >> y1 >> x2 >> y2 >> x3 >> y3 >> px >> py) {
  float d_x1, d_y1, d_x2, d_y2, d_x3, d_y3;
  d_x1 = (x1 - px) / abs(x1 - px);
  d_y1 = (y1 - py) / abs(y1 - py);
  d_x2 = (x2 - px) / abs(x2 - px);
  d_y2 = (y2 - py) / abs(y2 - py);
  d_x3 = (x3 - px) / abs(x3 - px);
  d_y3 = (y3 - py) / abs(y3 - py);
  if (abs(d_x1 + d_x2 + d_x3) < 3 && abs(d_y1 + d_y2 + d_y3) < 3) {
    cout << "YES" << endl;
  } else {
    cout << "NO" << endl;
  }
  }
  return 0;
}