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