import sys





def solve():

    readline = sys.stdin.buffer.readline

    mod = 10 ** 9 + 7

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

    print((a - min(a, k), b - min(k - min(a, k), b)))





if __name__ == '__main__':

    solve()

import sys





def solve():

    input = sys.stdin.readline

    mod = 10 ** 9 + 7

    a, b, k = list(map(int, input().rstrip('\n').split()))

    t = min(a, k)

    a -= t

    k -= t

    t = min(b, k)

    b -= t

    print((a, b))





if __name__ == '__main__':

    solve()

import sys


def solve():
    readline = sys.stdin.buffer.readline
    mod = 10**9 + 7
    a, b, k = list(map(int, readline().split()))
    print((a - min(a, k), b - min(k - min(a, k), b)))


if __name__ == "__main__":
    solve()

import sys


def solve():
    input = sys.stdin.readline
    mod = 10**9 + 7
    a, b, k = list(map(int, input().rstrip("\n").split()))
    t = min(a, k)
    a -= t
    k -= t
    t = min(b, k)
    b -= t
    print((a, b))


if __name__ == "__main__":
    solve()

-    readline = sys.stdin.buffer.readline +    input = sys.stdin.readline -    a, b, k = list(map(int, readline().split())) -    print((a - min(a, k), b - min(k - min(a, k), b))) +    a, b, k = list(map(int, input().rstrip("\n").split())) +    t = min(a, k) +    a -= t +    k -= t +    t = min(b, k) +    b -= t +    print((a, b))