function main(input) {
  var a = input[0].split(" ")[0]-0;
  var b = input[0].split(" ")[1]-0;
  var k = input[0].split(" ")[2]-0;

  var x = Math.min(a,k);
  a -= x;
  k -= x;
  x = Math.min(b,k);
  b -= x;
  console.log(a + " " + b);
}

main(require('fs').readFileSync('/dev/stdin', 'utf8').split("\n"))
