import kotlin.math.min const val MOD = 1000000007L operator fun List.component6(): T { return this[5] } fun main() { val (a, b, c, d, e, f) = readLine()!!.trim().split(' ').map(String::toDouble) val x = (c - b / e * f) / (a - b / e * d) val y = (c - a / d * f) / (b - a / d * e) println( "%.10f %.10f".format(x, y) ) }