#!ruby -anrmatrix x,y=[A=$F.map(&:to_f),A[0..5]+[id]*2].map{|_|Matrix[*_.each_slice(2).map{|a,b|[a*a+b*b,a,b,1]}].det} p x*y<0?1:0