Buggy python submission (verdict: Runtime Error):
import sys
for line in sys.stdin:
    list=map(float,line.split())
    x=list[0:6:2]
    y=list[1:6:2]
    xp=list[6]
    yp=list[7]
    xv=[x[a%3]-x[(a+1)%3] for a in xrange(4)]
    yv=[y[a%3]-y[(a+1)%3] for a in xrange(4)]
    xpv=[xp-x[a] for a in xrange(3)]
    ypv=[yp-y[a] for a in xrange(3)]
    cross=[xv[i]*ypv[i]-yv[i]*xpv[i] for i in xrange(3)]
    sorted(cross)
    if (cross[2]>0 and cross[0]>0) or (cross[2]<0 and cross[0]<0): 
        print "YES"
    else:
        print "NO"

Fixed submission:
import sys
for line in sys.stdin.readlines():
    try:
        list=map(float,line.split())
        x=list[0:6:2]
        y=list[1:6:2]
        xp=list[6]
        yp=list[7]
        xv=[x[a%3]-x[(a+1)%3] for a in xrange(4)]
        yv=[y[a%3]-y[(a+1)%3] for a in xrange(4)]
        xpv=[xp-x[a] for a in xrange(3)]
        ypv=[yp-y[a] for a in xrange(3)]
        cross=[xv[i]*ypv[i]-yv[i]*xpv[i] for i in xrange(3)]
        if (cross[2]>0 and cross[1]>0  and cross[0]>0) or (cross[2]<0 and cross[1]<0 and cross[0]<0): 
            print "YES"
        else:
            print "NO"
    except:
        pass
#temp

Buggy python submission (verdict: Runtime Error):
import sys
for line in sys.stdin.readlines():
    list=map(float,line.split())
    x=list[0:6:2]
    y=list[1:6:2]
    xp=list[6]
    yp=list[7]
    xv=[x[a%3]-x[(a+1)%3] for a in xrange(4)]
    yv=[y[a%3]-y[(a+1)%3] for a in xrange(4)]
    xpv=[xp-x[a] for a in xrange(3)]
    ypv=[yp-y[a] for a in xrange(3)]
    cross=[xv[i]*ypv[i]-yv[i]*xpv[i] for i in xrange(3)]
    sorted(cross)
    if (cross[2]>0 and cross[0]>0) or (cross[2]<0 and cross[0]<0): 
        print "YES"
    else:
        print "NO"

Fixed submission:
import sys
for line in sys.stdin.readlines():
    try:
        list=map(float,line.split())
        x=list[0:6:2]
        y=list[1:6:2]
        xp=list[6]
        yp=list[7]
        xv=[x[a%3]-x[(a+1)%3] for a in xrange(4)]
        yv=[y[a%3]-y[(a+1)%3] for a in xrange(4)]
        xpv=[xp-x[a] for a in xrange(3)]
        ypv=[yp-y[a] for a in xrange(3)]
        cross=[xv[i]*ypv[i]-yv[i]*xpv[i] for i in xrange(3)]
        if (cross[2]>0 and cross[1]>0  and cross[0]>0) or (cross[2]<0 and cross[1]<0 and cross[0]<0): 
            print "YES"
        else:
            print "NO"
    except:
        pass
#temp

Buggy python submission (verdict: Runtime Error):
import sys
for line in sys.stdin.readlines():
    list=map(float,line.split(" "))
    x=list[0:6:2]
    y=list[1:6:2]
    xp=list[6]
    yp=list[7]
    xv=[x[a%3]-x[(a+1)%3] for a in xrange(4)]
    yv=[y[a%3]-y[(a+1)%3] for a in xrange(4)]
    xpv=[xp-x[a] for a in xrange(3)]
    ypv=[yp-y[a] for a in xrange(3)]
    cross=[xv[i]*ypv[i]-yv[i]*xpv[i] for i in xrange(3)]
    sorted(cross)
    if (cross[2]>0 and cross[0]>0) or (cross[2]<0 and cross[0]<0): 
        print "YES"
    else:
        print "NO"

Fixed submission:
import sys
for line in sys.stdin.readlines():
    try:
        list=map(float,line.split())
        x=list[0:6:2]
        y=list[1:6:2]
        xp=list[6]
        yp=list[7]
        xv=[x[a%3]-x[(a+1)%3] for a in xrange(4)]
        yv=[y[a%3]-y[(a+1)%3] for a in xrange(4)]
        xpv=[xp-x[a] for a in xrange(3)]
        ypv=[yp-y[a] for a in xrange(3)]
        cross=[xv[i]*ypv[i]-yv[i]*xpv[i] for i in xrange(3)]
        if (cross[2]>0 and cross[1]>0  and cross[0]>0) or (cross[2]<0 and cross[1]<0 and cross[0]<0): 
            print "YES"
        else:
            print "NO"
    except:
        pass
#temp