Go: package main

import (
	"bufio"
	"fmt"
	"math"
	"os"
	"strconv"
)

var scanner = bufio.NewScanner(os.Stdin)

func nextString() string {
	scanner.Scan()
	return scanner.Text()
}

func nextFloat64() (float64, error) {
	return strconv.ParseFloat(nextString(), 64)
}

func mathRound(f float64) float64 {
	return math.Floor(f + .5)
}

func round(x float64) float64 {
	if math.Abs(x) < 0.001 {
		return 0
	}
	return mathRound(x*1000) / 1000
}

func main() {
	scanner.Split(bufio.ScanWords)
	for {
		a, err := nextFloat64()
		if err != nil {
			break
		}
		b, _ := nextFloat64()
		c, _ := nextFloat64()
		d, _ := nextFloat64()
		e, _ := nextFloat64()
		f, _ := nextFloat64()

		detA := a*e - b*d
		x := (c*e - b*f) / detA
		y := (a*f - c*d) / detA

		fmt.Printf("%.3f %.3f\n", round(x), round(y))
	}
}

Python: while True:
  try:
    a,b,c,d,e,f=map(float,input().split())

    if (a*e-b*d)!=0:
      x=(c*e-f*b)/(a*e-b*d)
      if b!=0:
        y=(c-a*x)/b
      elif e!=0:
        y=(f-d*x)/e
    elif (b*d-e*a)!=0:
      y=(c*d-f*a)/(b*d-e*a)
      if a!=0:
        x=(c-b*y)/a
      elif d!=0:
        x=(f-e*y)/d
    if x==-0:
      x=x+0.0
    if y==-0:
      y=y+0.0
    print(f"{x:.3f}",f"{y:.3f}")
  except EOFError:
    break

Python: while True:
	try:
		a, b, c, d, e, f = map(float, input().split())
		x = (c*e - b*f) / (a*e - b*d)
		y = (c*d - a*f) / (b*d - a*e)
		print("{:.3f} {:.3f}".format(x+0, y+0))
	except EOFError:
		break

Python: import argparse
  
parser = argparse.ArgumentParser(description='Process some integers.')
parser.add_argument('n', nargs='+', type=int, action='store')
args = parser.parse_args()

a = args.n[0]
b = args.n[1]
c = args.n[2]
d = args.n[3]
e = args.n[4]
f = args.n[5]

x = abs((c * e) - (f * b)) / abs((b * d) - (a * e))
y = abs((c * d) - (f * e)) / abs((b * d) - (a * e))
print('{} {}'.format(x, y))

Python: import sys

for line in sys.stdin:
    a,b,c,d,e,f= map(int,line.split(" "))
    z=a*e-b*d
    if(z!=0):
        x=(c*e-b*f)/z
        y=(a*f-c*d)/z
    print("{0:.3f} {1:.3f)".format(x+0,y+0))

Python: import sys

for line in sys.stdin:
    try:
        a,b,c,d,e,f = map(float, line.rstrip().split(' '))
        x = (b*f-c*e)/(b*d-a*e)
        y = (a*f-d*c)/(a*e-b*d)
        print("{:.3f} {:.3f}".format(x,y))
    except:
        break

Python: while(True):
        try:
            a,b,c,d,e,f= map(float,input().split(" "))
            z=a*e-b*d
            if(z!=0):
                x=(c*e-b*f)/z
                y=(a*f-c*d)/z
            print("{:.3f} {:.3f)".format(x+0,y+0))
        except:
            break

Python: import sys

d = sys.stdin.readline()
while d:
    a,b,c,d,e,f = map(int,d.split())
    inv = 1/(a*e - b*d)
    iA = [[e,-b],[-d,a]]
    B = [c,f]
    sol = list()
    for i in range(2):
        tmp = 0
        for j in range(2):
            tmp += inv*iA[i][j] * B[j]
        sol.append(tmp)
    print("%.3f %.3f"%(sol[0],sol[1]))

    d = sys.stdin.readline()

Python: try:
    while(True):
        a, b, c, d, e, f = map(int, input().split())
        A = [[e/(a*e-b*d), (-1)*b/(a*e-b*d)],[(-1)*d/(a*e-b*d), a/(a*e-b*d)]]
        Y = [c, f]
        X = [(A[0][0]*Y[0] + A[0][1]*Y[1]), (A[1][0]*Y[0] + A[1][1]*Y[1])]
        for i in range(2):
            print('{:.3f}'.format(X[i]), end="")
            if i == 1:
                print("")
            else:
                print(" ", end="")
except:
    pass

Python: while True:
	try:
		a,b,c,d,e,f = map(float,input().split())
		y=(a*f-c*d)/(a*e-b*d)
		x=(c-b*y)/a
		print('{:.3f} {:.3f}'.format(x,y))
	except:
		break;

Python: a,b,c,d,e,f = map(float,input().split(" "))
x,y = 0,0
float(x)
float(y)
x = (e*c-b*f) / (a*e-b*d)
y = ((-(d*c)+a*f) / (a*e-b*d))
print("%.3f" %(x), end="")
print(" ", end="")
print("%.3f" %(y))

Python: while(True):
        try:
            a,b,c,d,e,f= map(float,input().split(" "))
            det=a*e-b*d
            if(det!=0):
                x=(c*e-b*f)/det
                y=(a*f-c*d)/det
            print("{:.3f} {:.3f)".format(x+0,y+0))
        except:
            break

Python: import sys

for line in sys.stdin:
    a, b, c, d, e, f = list(map(float, line.split()))
    x = (c * e - b * f) / (a * e - b * d)
    y = (a * f - c * d) / (a * e - b * d)
    print("{0:.3f} {1:.3f}")

Python: import sys

for line in sys.stdin:
    a,b,c,d,e,f=list(map(int,line.split()))
    x=(c*e-b*f)/(a*e-b*d)
    y=(a*f-c*d)/(a*e-b*d)
    print("{0:.3f} {1:.3f}".format(x,y))

Python: while True:
    try:
        a,b,c,d,e,f = map(int, input().split())
        c = (a*e - b*d) + 0.00001
        x = (c*e - b*f)/c
        y = (a*f - c*d)/c
        print('{0:.3f}'.format(x) +' {0:.3f}'.format(y))
              
    except EOFError: break

Python: import sys

strs = []

for line in sys.stdin:
    strs.append(line)

for s in strs:
	a, b, c, d, e, f = map(int, s.split())

	x = (f*b - e*c)/(d*b - e*a)
	y = (c + f - x*(a+d))/(b+e)

	print('{:.3f} {:.3f}'.format(round(x,3)+0.0,round(y,3)+0.0))

Python: __author__ = 'hayato.osanai'
import sys

for idx, line in enumerate(sys.stdin):
    print('%s value' % line)

Python: import sys
#import numpy as np

for i in sys.stdin:
    a,b,c,d,e,f=list(map(float, i.split()))
    #A=np.matrix([[a,b],[d,e]])
    #inv_A = np.linalg.inv(A)
    #P=np.matrix([[c],[f]])
    #X=inv_A.dot(P)
    y = (f-(d*c)/a)/((a*e-d*b)/a)
    x = (c-b*y)/a
    print("{0:.3f} {1:.3f}".format(x,y))

Python: while(True):
		try:
			a,b,c,d,e,f=map(float,input().split(" "))
			z=a*e-b*d
			if(z!=0):
				x=(c*e-b*f)/z
				y=(a*f-c*d)/z
			print("{:.3f} {:.3f}".format(x+0,y+0))
		except:
			break

Python: try:
    while True:
        a,b,c,d,e,f=map(float, input().split())
        x=(c*e-b*f)/(a*e-b*d)
        y=(a*f-c*d)/(a*e-b*d)
        if x==0:
            x=0
        if y==0:
            y=0
        x=round(x,3)
        y=round(y,3)
        print("{0:.3f}".format(x),"{0:.3f}".format(y))
except EOFError:
    pass

Python: from __future__ import (division, absolute_import, print_function,
                        unicode_literals)
import sys

for line in sys.stdin:
    a, b, c, d, e, f = (float(n) for n in line.split())
    x = round((e * c - b * f) / (a * e - b * d), 4)
    y = round((a * f - c * d) / (a * e - b * d), 4)
    if x == -0.0:
        x  = 0.0
    if y == -0.0:
        y = 0.0
    print('{:.3f} {:.3f}'.format(-(-x), -(-y)))

Python: # -*- coding: utf-8 -*-
import math
while True:
    try:
        list = [float(x) for x in raw_input().split(" ")]
        x = (list[2]*list[4]-list[1]*list[5])/(list[0]*list[4]-list[1]*list[3])
        y = (list[0]*list[5]-list[2]*list[3])/(list[0]*list[4]-list[1]*list[3])
        if x == -0:
            x = 0
        if y == -0:
            y = 0
        print("%.3f %.3f" %(x, y))
    except EOFError:
        break

Python: while True:
  try:
    a, b, c, d, e, f = map(int, input().split(" "))
    
    det = a * d - b * c
    x = det * (d * e - b * f)
    y = det * ((-c) * e + a * f)

    print(str(x), str(y))

  except:
    break

Python: while True:
    try:
        a,b,c,d,e,f=map(int,input().split())
        x=(c*d-a*f)/(b*d-a*e)
        print("{:.3f} {:.3f}".format((c-b*x)/a,x))
    except:
        break

Python: import sys
L = sys.stdin.readlines()
for line in L:
	A = line.split()
	a, b, c, d, e, f = [float(A[i]) for i in range(6)]
	x = (b * f - c * e) / (b * d - a * e)
	y = (c * d - a * f) / (b * d - a * e)
	print("{:.3f}, {:.3f}".format(x, y))

Python: while True:
	line = input()
	if line == '':
		break
	a,b,c,d,e,f = [int(s) for s in line.split()]
	x = (c*e-b*f) / (a*e-b*d)
	y = (c*d-a*f) / (b*d-a*e)
	print('{0:.3f} {1:.3f}'.format(x,y))