def max(v1, v2)
  v1 < v2 ? v2 : v1
end

def min(v1, v2)
  v1 > v2 ? v2 : v1
end

while line = gets do
  x1, y1, x2, y2, x3, y3, xp, yp = line.split.map(&:to_f)
  max_x = max(x1, max(x2, x3))
  min_x = min(x1, min(x2, x3))
  max_y = max(y1, max(y2, y3))
  min_y = min(y1, min(y2, y3))

  xp >= min_x && xp <= max_x && yp >= min_y && yp <= max_y ? (puts "YES") : (puts "NO")
end