function Main(input) {
    input = input.split(" ");
    var a = Number(input[0]);
    var b = Number(input[1]);
    var k = Number(input[2]);
    
    a -= k;
    if(a < 0){
        b += a;
        a = 0;
    }
    if(b < 0){
        b = 0;
    }
    
    console.log("%d %d",a,b);
}

Main(require("fs").readFileSync("/dev/stdin", "utf8"));