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

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

if ((x != 0) and (y != 0)):