Go: package main

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

func main() {
        var a, b, c, d, e, f float64
        sc := bufio.NewScanner(os.Stdin)
        for sc.Scan() {
                fmt.Sscanf(sc.Text(), "%f %f %f %f %f %f", &a, &b, &c, &d, &e, &f)

                det := a*e - b*d
                x := (e*c - b*f) / det
                y := (a*f - c*d) / det
                if x == 0.0 {
                        x = math.Abs(x)
                }
                if y == 0.0 {
                        y = math.Abs(y)
                }
                fmt.Printf("%.3f %.3f\n", x, y)
        }
}

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))

Python: from decimal import Decimal, ROUND_HALF_UP, ROUND_HALF_EVEN
while True:
   try:
      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=int(x)
      if y==-0:
         y=int(y)
      X = Decimal(x).quantize(Decimal('0.001'), rounding=ROUND_HALF_UP)
      Y = Decimal(y).quantize(Decimal('0.001'), rounding=ROUND_HALF_UP)
      print(f'{X:.3f} {Y:.3f}')
   except EOFError:
      break

Python: print("hello")

Python: #det = ae - bd
#x = (ce - bf) / det
#y = (af - cd) / det

#-0.000 対策
EPS = 1e-4

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

Python: import sys, math

array = []
for line in sys.stdin:
    array.append(map(int, line.split(' ')))

for a, b, c, d, e, f in array:
    determinant = a * e - b * d
    if determinant == 0:
        print('NO ANSWER')
    x = (c * e - b * f) / determinant
    y = (a * f - c * d) / determinant
    x = math.floor(x * 1000) / 1000
    y = math.floor(y * 1000) / 1000

    print('{0:.3f} {1:.3f}'.format(x, y))

Python: #!/usr/bin/env python3
import sys


def Print(array):
    for r in range(len(array)):
        print(array[r])
    print()


def Gauss(array):
    for r in range(len(array)):
        array[r].append(r)

    for r in range(len(array)):
        array.sort(key=lambda x: x[r], reverse=True)
        div = array[r][r]
        for c in range(r, len(array) + 1):
            array[r][c] /= div
        for r2 in range(r + 1, len(array)):
            head = array[r2][r]
            for c in range(r, len(array) + 1):
                array[r2][c] -= head * array[r][c]

    result = [0] * len(array)
    for r in range(len(array) - 1, -1, -1):
        result[r] = array[r][
            len(array)] - sum([result[x] * array[r][x] for x in range(r + 1, len(array))])
    return result


for line in sys.stdin:
    [a, b, c, d, e, f] = [int(x) for x in line.split()]
    result = Gauss([[a, b, c], [d, e, f]])
    for i in range(len(result) - 1):
        print("{0:.3f}".format(result[i]), end=" ")
    print("{0:.3f}".format(result[-1]))