"#{require'matrix';a,*b=$stack[0].to_s.lines.map &:split;p Matrix[*b.map{|x|x.zip(a).map{|e|eval e*?-}}].det/6}";;