import sequtils, strutils let input = stdin.readLine.split.map parseFloat a = input[0] b = input[1] c = input[2] d = input[3] e = input[4] f = input[5] x = (b*f - c*e) / (b*d - a*e) y = (c - a*x) / b echo x, " ", y