A,B,K=list(map(int,input().split()))

C=A+B-K

if C<=0:

  A=0

  B=0

else:

  if A>=K:

    A=A-K

  else:

    B=B-(K-A)

    A=0

print((A,B))
A,B,K=list(map(int,input().split()))

t,a=0,0

if K>(A+B):

  print((t,a))

else:

  if K>=A:

    t=0

    a=B+(A-K)

  else:

    t=A-K

    a=B

  print((t,a))
A, B, K = list(map(int, input().split()))
C = A + B - K
if C <= 0:
    A = 0
    B = 0
else:
    if A >= K:
        A = A - K
    else:
        B = B - (K - A)
        A = 0
print((A, B))

A, B, K = list(map(int, input().split()))
t, a = 0, 0
if K > (A + B):
    print((t, a))
else:
    if K >= A:
        t = 0
        a = B + (A - K)
    else:
        t = A - K
        a = B
    print((t, a))

-C = A + B - K -if C <= 0: -    A = 0 -    B = 0 +t, a = 0, 0 +if K > (A + B): +    print((t, a)) -    if A >= K: -        A = A - K +    if K >= A: +        t = 0 +        a = B + (A - K) -        B = B - (K - A) -        A = 0 -print((A, B)) +        t = A - K +        a = B +    print((t, a))