a = float(input("valor: "))
b = float(input("valor: "))
c = float(input("valor: "))
d = float(input("valor: "))
e = float(input("valor: "))
f = float(input("valor: "))


if (a*e-b*d) and (a*e-b*d)!=0:
	print((c*e-b*f)/(a*e-b*d))
	print((a*f-c*d)/(a*e-b*d))
else:
	 print("Nao tem solucao")
	

	

	