Buggy python submission (verdict: Runtime Error):
import math

l = map(float, raw_input().split())
# adjusting d to a
a = l[0]/l[3]
l[3] = a * l[3]
l[4] = a * l[4]
l[5] = a * l[5]

# calculating y
y_1 = l[1] - l[4]
y_2 = l[2] - l[5]

y_answer = y_2/y_1

# calculatiing x

x_answer = (l[2] - l[1] * y_answer)/l[0]

x_answer = round(x_answer)
y_answer = round(y_answer)

print "%f %f" % (x_answer, y_answer)

Fixed submission:
while 1:
    def solver(a, b, c, d, e, f):
        answer = []

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

        else:
            m = a / d

            d = d * m
            e = e * m
            f = f * m

            y = (c - f)/(b - e)

            x = (c - b * y)/a

            if x == -0:
                x = 0
            if y == -0:
                y = 0

        answer.append(x)
        answer.append(y)
        return answer

    try:
        p_1, p_2, p_3, p_4, p_5, p_6 = map(float, raw_input().split())

        ans = []
        ans = solver(p_1, p_2, p_3, p_4, p_5, p_6)

        print "%.3f %.3f" % (ans[0], ans[1])

    except:
        break

Buggy python submission (verdict: Runtime Error):
import math

l = map(float, raw_input().split())
# adjusting d to a
a = l[0]/l[3]
l[3] = a * l[3]
l[4] = a * l[4]
l[5] = a * l[5]

# calculating y
y_1 = l[1] - l[4]
y_2 = l[2] - l[5]

y_answer = y_2/y_1

# calculatiing x

x_answer = (l[2] - l[1] * y_answer)/l[0]

x_answer = round(x_answer)
y_answer = round(y_answer)

print "%f %f" % (x_answer, y_answer)

Fixed submission:
while 1:
    def solver(a, b, c, d, e, f):
        answer = []

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

        else:
            m = a / d

            d = d * m
            e = e * m
            f = f * m

            y = (c - f)/(b - e)

            x = (c - b * y)/a

            if x == -0:
                x = 0
            if y == -0:
                y = 0

        answer.append(x)
        answer.append(y)
        return answer

    try:
        p_1, p_2, p_3, p_4, p_5, p_6 = map(float, raw_input().split())

        ans = []
        ans = solver(p_1, p_2, p_3, p_4, p_5, p_6)

        print "%.3f %.3f" % (ans[0], ans[1])

    except:
        break

Buggy python submission (verdict: Runtime Error):
import sys

a = []

for line in sys.stdin:
    a.append(map(float, raw_input().strip()))

for i in range(a):
    # adjusting d to a
    a = l[i][0]/l[i][3]
    l[i][3] = a * l[3]
    l[i][4] = a * l[4]
    l[5] = a * l[5]

    # calculating y
    y_1 = l[i][1] - l[i][4]
    y_2 = l[i][2] - l[i][5]

    y_answer = y_2/y_1

    # calculatiing x

    x_answer = (l[i][2] - l[i][1] * y_answer)/l[i][0]

    x_answer = round(x_answer)
    y_answer = round(y_answer)

    print "%3f %3f" % (x_answer, y_answer)

Fixed submission:
while 1:
    def solver(a, b, c, d, e, f):
        answer = []

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

        else:
            m = a / d

            d = d * m
            e = e * m
            f = f * m

            y = (c - f)/(b - e)

            x = (c - b * y)/a

            if x == -0:
                x = 0
            if y == -0:
                y = 0

        answer.append(x)
        answer.append(y)
        return answer

    try:
        p_1, p_2, p_3, p_4, p_5, p_6 = map(float, raw_input().split())

        ans = []
        ans = solver(p_1, p_2, p_3, p_4, p_5, p_6)

        print "%.3f %.3f" % (ans[0], ans[1])

    except:
        break

Buggy python submission (verdict: Runtime Error):
import sys

a = []

for line in sys.stdin:
    a.append(str(line))
for i in line:
    b = i.split()
    b = map(float, b)

    b_a = b[0]
    b_d = b[3]

    tmp_for_calc = b_a/b_d
    b_e = b[4] * tmp_for_calc
    b_f = b[5] * tmp_for_calc

    x = (b[2] - b_f)/(b[1] - b_e)

    y = (b[2] - b[1] * x)/b[0]

    print round(x, 3)
    print round(y, 3)

Fixed submission:
while 1:
    def solver(a, b, c, d, e, f):
        answer = []

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

        else:
            m = a / d

            d = d * m
            e = e * m
            f = f * m

            y = (c - f)/(b - e)

            x = (c - b * y)/a

            if x == -0:
                x = 0
            if y == -0:
                y = 0

        answer.append(x)
        answer.append(y)
        return answer

    try:
        p_1, p_2, p_3, p_4, p_5, p_6 = map(float, raw_input().split())

        ans = []
        ans = solver(p_1, p_2, p_3, p_4, p_5, p_6)

        print "%.3f %.3f" % (ans[0], ans[1])

    except:
        break

Buggy python submission (verdict: Runtime Error):

def get_input():
    while True:
        try:
            yield ''.join(raw_input())
        except EOFError:
            break

if __name__ == '__main__':
    a = list(get_input()) # [a1, a2, a3, ...]

    for i in a:
        b = i.split()
        b = map(float, b)

        b_a = b[0]
        b_b = b[1]
        b_c = b[2]
        b_d = b[3]
        b_e - b[4]
        b_f = b[5]

        b_d = b_a
        b_e = b_a/b_d * b_e
        b_f = b_a/b_d * b_f

        x = (b_c - b_f)/(b_b - b_e)

        y = (b_c - x * b_b)/b_a

        print round(x, 3)
        print round(y, 3)

Fixed submission:
while 1:
    def solver(a, b, c, d, e, f):
        answer = []

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

        else:
            m = a / d

            d = d * m
            e = e * m
            f = f * m

            y = (c - f)/(b - e)

            x = (c - b * y)/a

            if x == -0:
                x = 0
            if y == -0:
                y = 0

        answer.append(x)
        answer.append(y)
        return answer

    try:
        p_1, p_2, p_3, p_4, p_5, p_6 = map(float, raw_input().split())

        ans = []
        ans = solver(p_1, p_2, p_3, p_4, p_5, p_6)

        print "%.3f %.3f" % (ans[0], ans[1])

    except:
        break

Buggy python submission (verdict: Runtime Error):
import fileinput

if __name__ == '__main__':

    for i in fileinput.input():
        a.append(i)
    
    for i in a:
        b = i.split()
        b = map(float, b)

        b_a = b[0]
        b_b = b[1]
        b_c = b[2]
        b_d = b[3]
        b_e - b[4]
        b_f = b[5]
 
        b_d = b_a
        b_e = b_a/b_d * b_e
        b_f = b_a/b_d * b_f

        x = (b_c - b_f)/(b_b - b_e)

        y = (b_c - x * b_b)/b_a 

        print round(x, 3)

Fixed submission:
while 1:
    def solver(a, b, c, d, e, f):
        answer = []

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

        else:
            m = a / d

            d = d * m
            e = e * m
            f = f * m

            y = (c - f)/(b - e)

            x = (c - b * y)/a

            if x == -0:
                x = 0
            if y == -0:
                y = 0

        answer.append(x)
        answer.append(y)
        return answer

    try:
        p_1, p_2, p_3, p_4, p_5, p_6 = map(float, raw_input().split())

        ans = []
        ans = solver(p_1, p_2, p_3, p_4, p_5, p_6)

        print "%.3f %.3f" % (ans[0], ans[1])

    except:
        break

Buggy python submission (verdict: Runtime Error):
import fileinput

if __name__ == '__main__':

    for i in fileinput.input():
        a.append(i)
    
    for i in a:
        b = i.split()
        b = map(float, b)

        b_a = b[0]
        b_b = b[1]
        b_c = b[2]
        b_d = b[3]
        b_e - b[4]
        b_f = b[5]
 
        b_d = b_a
        b_e = b_a/b_d * b_e
        b_f = b_a/b_d * b_f

        x = (b_c - b_f)/(b_b - b_e)

        y = (b_c - x * b_b)/b_a 

        print round(x, 3)
        print round(y, 3)

Fixed submission:
while 1:
    def solver(a, b, c, d, e, f):
        answer = []

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

        else:
            m = a / d

            d = d * m
            e = e * m
            f = f * m

            y = (c - f)/(b - e)

            x = (c - b * y)/a

            if x == -0:
                x = 0
            if y == -0:
                y = 0

        answer.append(x)
        answer.append(y)
        return answer

    try:
        p_1, p_2, p_3, p_4, p_5, p_6 = map(float, raw_input().split())

        ans = []
        ans = solver(p_1, p_2, p_3, p_4, p_5, p_6)

        print "%.3f %.3f" % (ans[0], ans[1])

    except:
        break

Buggy python submission (verdict: Runtime Error):
import fileinput
import sys

for i in fileinput.input():
    a.append(i)
    
for i in a:
    b = i.split()
    b = map(float, b)

    b_a = b[0]
    b_b = b[1]
    b_c = b[2]
    b_d = b[3]
    b_e - b[4]
    b_f = b[5]
 
    b_d = b_a
    b_e = b_a/b_d * b_e
    b_f = b_a/b_d * b_f

    x = (b_c - b_f)/(b_b - b_e)

    y = (b_c - x * b_b)/b_a 

    print round(x, 3)
    print round(y, 3)

sys.exit(None)

Fixed submission:
while 1:
    def solver(a, b, c, d, e, f):
        answer = []

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

        else:
            m = a / d

            d = d * m
            e = e * m
            f = f * m

            y = (c - f)/(b - e)

            x = (c - b * y)/a

            if x == -0:
                x = 0
            if y == -0:
                y = 0

        answer.append(x)
        answer.append(y)
        return answer

    try:
        p_1, p_2, p_3, p_4, p_5, p_6 = map(float, raw_input().split())

        ans = []
        ans = solver(p_1, p_2, p_3, p_4, p_5, p_6)

        print "%.3f %.3f" % (ans[0], ans[1])

    except:
        break

Buggy python submission (verdict: Runtime Error):
def solver(a, b, c, d, e, f):
    answer = []

    m = a / d

    d = d * m
    e = e * m
    f = f * m

    y = (c - f)/(b - e)

    x = (c - b * y)/a
    answer.append(x)
    answer.append(y)

    return answer




while 1:
    try:
        p_1, p_2, p_3, p_4, p_5, p_6 = map(float, raw_input().split())

        ans = []
        ans = solver(p_1, p_2, p_3, p_4, p_5, p_6)

        print "%.3f %.3f" % (ans[0], ans[1])


    except:

Fixed submission:
while 1:
    def solver(a, b, c, d, e, f):
        answer = []

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

        else:
            m = a / d

            d = d * m
            e = e * m
            f = f * m

            y = (c - f)/(b - e)

            x = (c - b * y)/a

            if x == -0:
                x = 0
            if y == -0:
                y = 0

        answer.append(x)
        answer.append(y)
        return answer

    try:
        p_1, p_2, p_3, p_4, p_5, p_6 = map(float, raw_input().split())

        ans = []
        ans = solver(p_1, p_2, p_3, p_4, p_5, p_6)

        print "%.3f %.3f" % (ans[0], ans[1])

    except:
        break