Go: package main

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

func main() {
	scanner := bufio.NewScanner(os.Stdin)
	for scanner.Scan() {
		strNums := strings.Fields(scanner.Text())
		nums := []int{}
		for _, strNum := range strNums {
			num, _ := strconv.Atoi(strNum)
			nums = append(nums, num)
		}
		a := nums[0]
		b := nums[1]
		c := nums[2]
		d := nums[3]
		e := nums[4]
		f := nums[5]
		var mulA, mulD int
		if a < 0 {
			mulA = a * -1
		} else {
			mulA = a
		}
		if d < 0 {
			mulD = d * -1
		} else {
			mulD = d
		}
		a *= mulD
		b *= mulD
		c *= mulD
		d *= mulA
		e *= mulA
		f *= mulA

		if d < 0 {
			d *= -1
			e *= -1
			f *= -1
		}

		bE := b - e
		cF := c - f
		if bE == 0 {
			bE = 1
		}
		y := cF / bE
		x := (c - (y * b)) / a

		fmt.Printf("%d.000 ", x)
		fmt.Printf("%d.000\n", y)
	}
}

Python: def main():
    p = [float(x) for x in input().split()]
    x = (p[4]*p[2]-p[1]*p[5])/(p[0]*p[4]-p[1]*p[3])
    y = (p[2]-p[0]*x)/p[1]
    if abs(x)<1e3:
        x=0.0
    if abs(y)<1e3:
        y=0.0
    print("%.3f %.3f"%(x,y))

main()

Python: while True:
    try:
        line=input()

    except:
        break

    a,b,c,d,e,f=map(int, line.strip().split())

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

Python: import itertools
import operator

dataset = []
while True:
    try:
        dataset.append(input())
    except EOFError:
        break

for item in dataset:
    a, b, c, d, e, f = [int(i) for i in item.split()]
    for i in range(-1000, 1001):
        for j in range(-1000, 1001):
            if a * i + b * j == c and d * i + e * j == f:
                print("{:.3f} {:.3f}".format(i, j))

Python: import sys

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

Python: # -*- coding:utf-8 -*-
 
def main():
    while True:
        try:
            IN=input()
            if IN=="":
                raise EOFError
            else:
                val=IN.split(" ")
                a=int(val[0])
                b=int(val[1])
                c=int(val[2])
                d=int(val[3])
                e=int(val[4])
                f=int(val[5])

                x=round(float((c*e-b*f)/(a*e-b*d)),3)
                y=round(float((c*d-a*f)/(b*d-a*e)),3)

            print(x,y)
                
        except EOFError:
            break
  
if __name__ == '__main__':
    main()

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

Python: import sys
[print(" ".join(["{: .3f}".format(y).strip() for y in [(x[4] * x[2] - x[1] * x[5]) / (x[0] * x[4] - x[1] * x[3]), (x[0] * x[5] - x[2] * x[3]) / (x[0] * x[4] - x[1] * x[3])]])) for x in [[float(y) for y in x.split()] for x in sys.stdin]]

Python: #!/usr/bin/env python3
# -*- coding: utf-8 -*-

import sys
import math

def my_round(x):
    xx = 1000*x
    f, i = math.modf(xx)
    print(f,i)
    if f < 0.0 and f <= -0.5:
        i -= 1
    if f >= 0.0 and f >= 0.5:
        i += 1
    return i/1000

def main():
    for line in sys.stdin:
        a, b, c, d, e, f = map(float, line.split())

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

        xr = my_round(x)
        yr = my_round(y)
        print("{:.3f} {:.3f}".format(x, y))

if __name__ == "__main__": main()

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

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

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

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

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 int(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: if __name__ == '__main__':
    while True:
        try:
            a, b, c, d, e, f = map(float, input().split())
            x = (c*e - f*b)/(a*e - b*d)
            y = (c*d - f*a)/(b*d - e*a)
            if x == -0.0:
                x = 0.0
            if y == -0.0:
                y = 0.0
            print("{0:.3f}".format(x),end = ' ')
            print("{0:.3f}".format(y))
        except EOFError:
            break

Python: t = 0
while t == 0:	
	try:
		a,b,c,d,e,f = [int(i) for i in input().split()]
	except:
		break
	else:
		x = (e*c - b*f) / (a*e - b*d)
		y = (a*f - c*d) / (a*e - b*d)
		print("{0:.3f}".format(x) + " " + "{0:.3f}".format(y))

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

Python: while True:
    try:
        a,b,c,d,e,f=[float(i) for i in input().split()]
    except:
        break
    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: import sys

for line in sys.stdin:
    nums = line.split(" ")
    a, b, e, c, d, f = int(nums[0]),int(nums[1]),int(nums[2]),int(nums[3]),int(nums[4]),int(nums[5])
    print('{0:.3f} {1:.3f}'.format(round((e*d-b*f)/(a*d-b*c),3), round((a*f-e*c)/(a*d-b*c),3)))

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

Python: x = int(0)
y = int(0)

while 1:
	try:
		data = raw_input().split()

		a = int(data[0])
		b = int(data[1])
		c = int(data[2])
		d = int(data[3])
		e = int(data[4])
		f = int(data[5])

		# a*x + b*y = c
		# d*x + e*y = f

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

		print(float(format(x, '.3f')))
		print(float(format(y, '.3f')))

	except:
		break

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

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

Python: import sys
import numpy as np

for line in sys.stdin:
    a11,a12,b1,a21,a22,b2 = list(map(int, line.split()))

    A=np.array([[a11,a12],[a21,a22]])
    B=np.array([b1,b2])

    x,y=np.linalg.solve(A,B)
    
    print("{0:.3f} {1:.3f}".format(x,y))

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

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

print(x,y)