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