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{
    answer = "0 " + b - (k - a)
  }
  console.log(answer)
}
 
main(require('fs').readFileSync('/dev/stdin', 'utf8').split("\n"))
