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

if A>=K:

  print((A-K,B))

elif A<K and A+B>K:

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

else:

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

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

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

-if A >= K: -    print((A - K, B)) -elif A < K and A + B > K: -    print((0, B - (K - A))) -else: -    print((0, 0)) +print((max(0, A - K), max(0, B - (max(K - A, 0)))))