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

if a>=k:

    print((a-k,b))

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

    print((0,a+b-k))

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,a+b-k))

else:

    print((0,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, a + b - k))
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, a + b - k))
else:
    print((0, 0))

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