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



if K <= A:

    print((str(A - K) + ' ' + str(B)))

    

elif K > A and B >= (K - A):

    print(('0 ' + str(B - (K - A))))



else:

    print('0 0')

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

if K <= A:

    print(((A - K), B))



elif (K > A) and ((K - A) <= B ):

    print((0, (B - (K - A))))



else:

    print((0, 0))
A, B, K = list(map(int, input().split()))
if K <= A:
    print((str(A - K) + " " + str(B)))
elif K > A and B >= (K - A):
    print(("0 " + str(B - (K - A))))
else:
    print("0 0")

A, B, K = list(map(int, input().split()))
if K <= A:
    print(((A - K), B))
elif (K > A) and ((K - A) <= B):
    print((0, (B - (K - A))))
else:
    print((0, 0))

-    print((str(A - K) + " " + str(B))) -elif K > A and B >= (K - A): -    print(("0 " + str(B - (K - A)))) +    print(((A - K), B)) +elif (K > A) and ((K - A) <= B): +    print((0, (B - (K - A)))) -    print("0 0") +    print((0, 0))