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

if a-k>0 and a+b > k:

    print((str(a-k)+" "+str(b)))

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

    print((str(0)+" "+str(b-(a-k)*(-1))))

else:

    print((str(0)+" "+str(0)))

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

a = a - k

if a >0:

    print((a,b))

elif a <=0:

    b += a

    if b >= 0:

        print((0,b))

    else:

        print((0,0))
a, b, k = list(map(int, input().split()))
if a - k > 0 and a + b > k:
    print((str(a - k) + " " + str(b)))
elif a - k <= 0 and a + b > k:
    print((str(0) + " " + str(b - (a - k) * (-1))))
else:
    print((str(0) + " " + str(0)))

a, b, k = list(map(int, input().split()))
a = a - k
if a > 0:
    print((a, b))
elif a <= 0:
    b += a
    if b >= 0:
        print((0, b))
    else:
        print((0, 0))

-if a - k > 0 and a + b > k: -    print((str(a - k) + " " + str(b))) -elif a - k <= 0 and a + b > k: -    print((str(0) + " " + str(b - (a - k) * (-1)))) -else: -    print((str(0) + " " + str(0))) +a = a - k +if a > 0: +    print((a, b)) +elif a <= 0: +    b += a +    if b >= 0: +        print((0, b)) +    else: +        print((0, 0))