import java.util.*; public class Main { public static void main (String[] args) { 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(); double x = (c * e - b * f) / (a * e - b * d); double y = (c * d - a * f) / (b * d - a * e); System.out.println(x + " " + y); } }