function Main(input) {
  var vals = input.trim().split(/\s+/).map(x => parseInt(x));
  var a = vals[0];
  var b = vals[1];
  var k = vals[2];
  
  for (var n = 0; n < k; n++) {
    if (a > 0)
      a -= 1;
    else if (b > 0)
      b -= 1;
    else
      break;
  }
  console.log('%d %d', a, b);
};
 
Main(require("fs").readFileSync("/dev/stdin", "utf8"));
