'use strict';
const main = input => {
  const nums = input[0].split(' ').map(val => parseInt(val));
  let a = nums[0], b = nums[1], k = nums[2];
  b = b + a - k;
  a -= k;
  if (a<0) a = 0;
  console.log(a,b);
  
}
main(require("fs").readFileSync("/dev/stdin", "utf8").split('\n'));