function Main (input) {
    input = input.split("\n");
    tmp = input[0].split(" ");
    var a = parseInt(tmp[0], 10);
    var b = parseInt(tmp[1], 10);
    var k = parseInt(tmp[2], 10);
    //console.log(input[0]);
    //console.log(a);
    if (a >= k) {
        console.log('%d %d', a - k, b);
    } else {
        console.log('%d %d', 0, b - (k - a));
    }
  }
   
Main(require("fs").readFileSync("/dev/stdin", "utf8"));
//ctrl+Dで入力終