function Main(input) {
  var nums = input.split(' ');

  var takahasi = Math.floor(nums[0]);
  var aoki = Math.floor(nums[1]);
  var kaisu = Math.floor(nums[2]);
  
  var ans1 = 0;
  var ans2 = 0;
  
  if (kaisu >= takahasi + aoki) {
    console.log('0 0');
  } else if (kaisu >= takahasi) {
    ans2 = aoki - kaisu + takahasi;
    console.log(`${ans1} ${ans2}`);
  } else {
    ans1 = takahasi - kaisu;
    console.log(`${ans1} ${ans2}`);
  }
}
Main(require('fs').readFileSync('/dev/stdin', 'utf8'));