#!ruby -anrmathn $*<<$F.map{|x|x.to_f} END{puts [*Matrix[*$*].inv].map{|l|l.map{|r|((r+r/24e4).round)}*' '}}