#!/usr/bin/env python3 # from typing import * import sys import io import math import collections import decimal import itertools import bisect import heapq def input(): return sys.stdin.readline()[:-1] # sys.setrecursionlimit(1000000) # _INPUT = """# paste here... # """ # sys.stdin = io.StringIO(_INPUT) INF = 10**10 a, b, c, d, e, f = map(int, input().split()) x = (c*e-b*f)/(a*e-b*d) y = (a*f-c*d)/(a*e-b*d) print(x, y)