import numpy as np def main(): a, b, c, d, e, f = map(int, input().split()) A = np.matrix([(a, b), (d, e)]) b_ = np.array([[c], [f]]) x = np.dot(A**-1, b_) print(x[0, 0], x[1, 0]) if __name__ == "__main__": main()