while line = gets do
  s = line.split.map(&:to_f)   
  z = 0.5 * ((s[0] - s[4]) * (s[3] - s[5]) - (s[1] - s[5]) * (s[2] - s[4])).abs.round(3)
  a = 0.5 * ((s[0] - s[6]) * (s[3] - s[7]) - (s[1] - s[7]) * (s[2] - s[6])).abs.round(3)
  b = 0.5 * ((s[0] - s[6]) * (s[5] - s[7]) - (s[1] - s[7]) * (s[4] - s[6])).abs.round(3)
  c = 0.5 * ((s[2] - s[6]) * (s[5] - s[7]) - (s[3] - s[7]) * (s[4] - s[6])).abs.round(3)
  puts "#{a} #{b} #{c} #{z}"
  
  if z == a + b + c then
    puts "YES\n";
  else
    puts "NO\n"
  end
end