a,b,k = list(map(int,input().split()))



if k <= a:

    a -= k

    k = 0

    print((a, b))

    exit()



k -= a

print((0, max(0, b - k)))

a,b,k = list(map(int,input().split()))



if a < k:

    k -= a

    a = 0

else:

    a -= k

    k = 0



if b < k:

    k -= b

    b = 0

else:

    b -= k

    k = 0



print((a, b))

a, b, k = list(map(int, input().split()))
if k <= a:
    a -= k
    k = 0
    print((a, b))
    exit()
k -= a
print((0, max(0, b - k)))

a, b, k = list(map(int, input().split()))
if a < k:
    k -= a
    a = 0
else:
    a -= k
    k = 0
if b < k:
    k -= b
    b = 0
else:
    b -= k
    k = 0
print((a, b))

-if k <= a: +if a < k: +    k -= a +    a = 0 +else: -    print((a, b)) -    exit() -k -= a -print((0, max(0, b - k))) +if b < k: +    k -= b +    b = 0 +else: +    b -= k +    k = 0 +print((a, b))