"use strict"
function main(arg) {
    var data = arg.split("\n")[0].split(" ").map(Number)
    var k = data[2]
    var a = data[0]
    var b = data[1]
    if (a >= k) {
        a = a - k
        console.log(a + " " + b)
        return
    } else {
        k = k - a
        a = 0
        if (b >= k) {
            b = b - k
            console.log(a + " " + b)
            return 
        } else {
            console.log(0 + " " + 0)
            return
        }
    }
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));