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

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

print((max(0, a - k), max(0, b - max(0, k - a))))
a, b, k = list(map(int, input().split()))
print((a - min(a, k), b - min(b, k - min(a, k))))

a, b, k = list(map(int, input().split()))
print((max(0, a - k), max(0, b - max(0, k - a))))

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