#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
scalar_t__ EOF;
int /*<<< orphan*/ printf(char *, int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ round(double);
scalar_t__ scanf(char *, double *, double *, double *, double *, double *,
                 double *);
int main(void) {
  int temp;
  double a, b, c, d, e, f, x, y;
  while (scanf("%lf %lf %lf %lf %lf %lf\n", &a, &b, &c, &d, &e, &f) != EOF) {
    x = 1.0 * (c * e - b * f) / (a * e - b * d);
    y = 1.0 * (a * f - c * d) / (a * e - b * d);
    printf("%.3lf %.3lf\n", round(x), round(y));
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xec2(%rip),%rdi
lea    -0x10(%rbp),%rsi
lea    -0x18(%rbp),%rdx
lea    -0x20(%rbp),%rcx
lea    -0x28(%rbp),%r8
lea    -0x30(%rbp),%r9
lea    -0x38(%rbp),%rax
mov    %rax,(%rsp)
call   1040 <scanf@plt>
mov    0x2e7a(%rip),%rcx
cmp    (%rcx),%rax
je     129a <main+0x16a>
movsd  -0x20(%rbp),%xmm1
movsd  -0x30(%rbp),%xmm2
movsd  -0x18(%rbp),%xmm0
mulsd  -0x38(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  0xe4e(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  -0x10(%rbp),%xmm1
movsd  -0x30(%rbp),%xmm3
movsd  -0x18(%rbp),%xmm2
mulsd  -0x28(%rbp),%xmm2
movq   %xmm2,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm2
mulsd  %xmm3,%xmm1
addsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x10(%rbp),%xmm1
movsd  -0x38(%rbp),%xmm2
movsd  -0x20(%rbp),%xmm0
mulsd  -0x28(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  0xdd3(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  -0x10(%rbp),%xmm1
movsd  -0x30(%rbp),%xmm3
movsd  -0x18(%rbp),%xmm2
mulsd  -0x28(%rbp),%xmm2
movq   %xmm2,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm2
mulsd  %xmm3,%xmm1
addsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x40(%rbp),%xmm0
call   1050 <round@plt>
mov    %eax,-0x4c(%rbp)
movsd  -0x48(%rbp),%xmm0
call   1050 <round@plt>
mov    -0x4c(%rbp),%esi
mov    %eax,%edx
lea    0xd91(%rip),%rdi
call   1030 <printf@plt>
jmp    113f <main+0xf>
xor    %eax,%eax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x58,%rsp
lea    0x38(%rsp),%rbx
mov    %rbx,(%rsp)
lea    0xeb2(%rip),%rdi
lea    0x30(%rsp),%rsi
lea    0x28(%rsp),%rdx
lea    0x20(%rsp),%rcx
lea    0x18(%rsp),%r8
lea    0x10(%rsp),%r9
call   1040 <scanf@plt>
mov    0x2e75(%rip),%r13
cmp    0x0(%r13),%rax
je     1246 <main+0x116>
lea    0x20(%rsp),%r12
lea    0x18(%rsp),%rbp
lea    0x10(%rsp),%r14
nopl   0x0(%rax)
movsd  0x20(%rsp),%xmm1
movsd  0x38(%rsp),%xmm2
movsd  0x30(%rsp),%xmm5
movsd  0x18(%rsp),%xmm3
movapd %xmm2,%xmm0
unpcklpd %xmm3,%xmm0
movsd  0x28(%rsp),%xmm4
unpcklpd %xmm4,%xmm4
mulpd  %xmm0,%xmm4
mulsd  %xmm1,%xmm3
unpcklpd %xmm5,%xmm1
movsd  0x10(%rsp),%xmm0
unpcklpd %xmm0,%xmm0
mulpd  %xmm1,%xmm0
subpd  %xmm4,%xmm0
movapd %xmm0,%xmm1
unpckhpd %xmm0,%xmm1
divsd  %xmm1,%xmm0
mulsd  %xmm2,%xmm5
subsd  %xmm3,%xmm5
divsd  %xmm1,%xmm5
movapd %xmm5,0x40(%rsp)
call   1050 <round@plt>
mov    %eax,%r15d
movaps 0x40(%rsp),%xmm0
call   1050 <round@plt>
lea    0xe0a(%rip),%rdi
mov    %r15d,%esi
mov    %eax,%edx
call   1030 <printf@plt>
mov    %rbx,(%rsp)
lea    0xddc(%rip),%rdi
lea    0x30(%rsp),%rsi
lea    0x28(%rsp),%rdx
mov    %r12,%rcx
mov    %rbp,%r8
mov    %r14,%r9
call   1040 <scanf@plt>
cmp    0x0(%r13),%rax
jne    1190 <main+0x60>
xor    %eax,%eax
add    $0x58,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [25 x i8] c"%lf %lf %lf %lf %lf %lf\0A\00"
@EOF = global i64 0
@.str.1 = [13 x i8] c"%.3lf %.3lf\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca double
%4 = alloca double
%5 = alloca double
%6 = alloca double
%7 = alloca double
%8 = alloca double
%9 = alloca double
%10 = alloca double
store i32 0, i32* %1
br label %11
11: ; preds = %15, %0
%12 = call i64 @scanf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0), double* %3, double* %4, double* %5, double* %6, double* %7, double* %8)
%13 = load i64, i64* @EOF
%14 = icmp ne i64 %12, %13
br i1 %14, label %15, label %53
15: ; preds = %11
%16 = load double, double* %5
%17 = load double, double* %7
%18 = load double, double* %4
%19 = load double, double* %8
%20 = fmul double %18, %19
%21 = fneg double %20
%22 = call double @llvm.fmuladd.f64(double %16, double %17, double %21)
%23 = fmul double 1.000000e+00, %22
%24 = load double, double* %3
%25 = load double, double* %7
%26 = load double, double* %4
%27 = load double, double* %6
%28 = fmul double %26, %27
%29 = fneg double %28
%30 = call double @llvm.fmuladd.f64(double %24, double %25, double %29)
%31 = fdiv double %23, %30
store double %31, double* %9
%32 = load double, double* %3
%33 = load double, double* %8
%34 = load double, double* %5
%35 = load double, double* %6
%36 = fmul double %34, %35
%37 = fneg double %36
%38 = call double @llvm.fmuladd.f64(double %32, double %33, double %37)
%39 = fmul double 1.000000e+00, %38
%40 = load double, double* %3
%41 = load double, double* %7
%42 = load double, double* %4
%43 = load double, double* %6
%44 = fmul double %42, %43
%45 = fneg double %44
%46 = call double @llvm.fmuladd.f64(double %40, double %41, double %45)
%47 = fdiv double %39, %46
store double %47, double* %10
%48 = load double, double* %9
%49 = call i32 @round(double %48)
%50 = load double, double* %10
%51 = call i32 @round(double %50)
%52 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), i32 %49, i32 %51)
br label %11
53: ; preds = %11
ret i32 0
}

LLVM IR (-O2):
@.str = [25 x i8] c"%lf %lf %lf %lf %lf %lf\0A\00"
@EOF = global i64 0
@.str.1 = [13 x i8] c"%.3lf %.3lf\0A\00"
define i32 @main() {
%1 = alloca double
%2 = alloca double
%3 = alloca double
%4 = alloca double
%5 = alloca double
%6 = alloca double
%7 = bitcast double* %1 to i8*
%8 = bitcast double* %2 to i8*
%9 = bitcast double* %3 to i8*
%10 = bitcast double* %4 to i8*
%11 = bitcast double* %5 to i8*
%12 = bitcast double* %6 to i8*
%13 = call i64 @scanf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0), double* %1, double* %2, double* %3, double* %4, double* %5, double* %6)
%14 = load i64, i64* @EOF
%15 = icmp eq i64 %13, %14
br i1 %15, label %47, label %16
16: ; preds = %0, %16
%17 = load double, double* %3
%18 = load double, double* %5
%19 = load double, double* %2
%20 = load double, double* %6
%21 = fneg double %19
%22 = load double, double* %1
%23 = load double, double* %4
%24 = insertelement <2 x double> poison, double %20, i64 0
%25 = insertelement <2 x double> %24, double %23, i64 1
%26 = insertelement <2 x double> poison, double %21, i64 0
%27 = shufflevector <2 x double> %26, <2 x double> poison, <2 x i32> zeroinitializer
%28 = fmul <2 x double> %25, %27
%29 = insertelement <2 x double> poison, double %17, i64 0
%30 = insertelement <2 x double> %29, double %22, i64 1
%31 = insertelement <2 x double> poison, double %18, i64 0
%32 = shufflevector <2 x double> %31, <2 x double> poison, <2 x i32> zeroinitializer
%33 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %30, <2 x double> %32, <2 x double> %28)
%34 = extractelement <2 x double> %33, i64 0
%35 = extractelement <2 x double> %33, i64 1
%36 = fdiv double %34, %35
%37 = fneg double %17
%38 = fmul double %23, %37
%39 = call double @llvm.fmuladd.f64(double %22, double %20, double %38)
%40 = fdiv double %39, %35
%41 = call i32 @round(double %36)
%42 = call i32 @round(double %40)
%43 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), i32 %41, i32 %42)
%44 = call i64 @scanf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0), double* %1, double* %2, double* %3, double* %4, double* %5, double* %6)
%45 = load i64, i64* @EOF
%46 = icmp eq i64 %44, %45
br i1 %46, label %47, label %16
47: ; preds = %16, %0
ret i32 0
}