import java.util.Scanner; public class HelloWorld { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); double a = sc.nextDouble(); double b = sc.nextDouble(); double c = sc.nextDouble(); double d = sc.nextDouble(); double e = sc.nextDouble(); double f = sc.nextDouble(); sc.close(); double y = (a * f - d * c) / (a * e - b * d); double x = c/a - (a * f - c * d) * b / a / (a * e - b * d); System.out.println(x + " " + y); } }