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

 

if K <= A:

  A -= K

elif A+B >= K > A:

  B -= K-A

  A = 0

else:

  A, B = 0, 0

  

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

 

ans_A, ans_B = A, B

if K <= A:

  ans_A -= K

elif A+B >= K > A:

  ans_B -= K-A

  ans_A = 0

else:

  ans_A, ans_B = 0, 0

  

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

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

+ans_A, ans_B = A, B -    A -= K +    ans_A -= K -    B -= K - A -    A = 0 +    ans_B -= K - A +    ans_A = 0 -    A, B = 0, 0 -print((A, B)) +    ans_A, ans_B = 0, 0 +print((ans_A, ans_B))