-- Simultaneous Equation
main = getContents >>= putStr . solve

solve :: String -> String
solve = unlines . map (unwords . map show . simul . map read) . map words . lines

simul :: Fractional a => [a] -> [a]
simul [a,b,c,d,e,f] = [x,y]
  where
    det = a * e - d * b
    x = (c * e - b * f) / det
    y = (a * f - c * d) / det