'use strict';
function main(input) {
  const arr = input.trim().split(' ');
  const a = Number(arr[0]);
  const b = Number(arr[1]);
  const c = Number(arr[2]);

  if (a <= c) {
    console.log(`${0} ${a + b - c}`);
  } else {
    console.log(`${a - c} ${b}`);
  }
  
}

main(require("fs").readFileSync("/dev/stdin", "utf8"));