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

if k - a >= b:

  a = 0

  b = 0

elif k >= a and  k - a < b:

  k -= a

  a = 0

  b -= k - a

else:

  a -= k

print((a, b))

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

if k <= a:

  answer = ( a - k , b)

else:

  answer = (0 , max(0 , a + b -k))

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

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

-if k - a >= b: -    a = 0 -    b = 0 -elif k >= a and k - a < b: -    k -= a -    a = 0 -    b -= k - a +if k <= a: +    answer = (a - k, b) -    a -= k -print((a, b)) +    answer = (0, max(0, a + b - k)) +print((*answer))