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