'use strict'
const Main = (input) =>{
  let xs = input.trim().split(' ').map(v=>parseInt(v,10));
  let A = xs[0];
  let B = xs[1];
  let K = xs[2];
  
  let eat_T = A - K;
  let eat_A = 0
  if(eat_T > 0){
  	eat_A = B;
  }else{
    eat_A = B - (eat_T * -1);
  }
  //console.log(eat_A)
  let ans = [];
  if(eat_T <= 0){
  	ans.push(0);
  }else{
  	ans.push(eat_T)
  }
  if(eat_A <= 0){
  	ans.push(0);
  }else{
  	ans.push(eat_A);
  }
  console.log(ans[0]+' '+ans[1]);
}
Main(require('fs').readFileSync('/dev/stdin','utf8'));