import scala.io.Source.stdin

object Main extends App {
  for( i<- stdin.getLines ) {
    val n = i.split(" ").map(_.toDouble)
    val (a,b,c,d,e,f) = (n(2)-n(0),n(4)-n(0),n(3)-n(1),n(5)-n(1),n(6)-n(0),n(7)-n(1))
    val g = a*d-b*c
    val x = (e*d-b*f)/g
    val y = (a*f-e*c)/g
    if(x<=0 || y <= 0 || x+y>=1) println("NO") else println("YES")
  }
}