try while 0=0do Scanf.scanf"%f %f %f %f %f %f %f %f
"(fun a b c d e f g h->let i=(a-.e)*.(h-.b)-.(b-.f)*.(g-.a)and j=(c-.a)*.(h-.d)-.(d-.b)*.(g-.c)and k=(e-.c)*.(h-.f)-.(f-.d)*.(g-.e)in print_endline(if i>0.&&j>0.&&k>0.||i<0.&&j<0.&&k<0.then"YES"else"NO"))done with _->()