import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
double a = input.nextDouble();
double b = input.nextDouble();
double c = input.nextDouble();
double d = input.nextDouble();
double e = input.nextDouble();
double f = input.nextDouble();
if((a*d-b*c)==0){
System.out.println("no solution");}
if((a*d-b*c)!=0){
double x = (e*d-b*f)/(a*d-b*c);
double y = (a*f-e*c)/(a*d-b*c);
if(x>y){
System.out.printf("%.0f %.0f",x,y);
}
if(x<y){
System.out.printf("%.0f %.0f",y,x);
}
}
}
}
이거 답은 똑같게 뜨는데 자꾸 롱엔서 떠요 어디가틀린거예여?