inp = require('fs').readFileSync('/dev/stdin', 'utf8').trim().split('\n')
l = inp.shift().split(' ')
a = l.shift() * 1
b = l.shift() * 1
k = l.shift() * 1
if (k > a) {
    b = b - (k - a)
    if (b < 0) {
        b = 0
    }
    a = 0
} else {
    a = a - k
}
console.log(a + ' ' + b)
