require'mathn';puts [*Matrix[*$<.map{|$_|split.map &:to_f}].inv].map{|l|l.map{|r|(r+r/3e5).round}*' '}