function Main(input) {
	input = input.split("\n");
	tmp = input[0].split(" ");
	var a = parseInt(tmp[0], 10);
	var b = parseInt(tmp[1], 10);
  	var c = parseInt(tmp[2], 10);
  for(let i = 0; i < c; i++) {
    if(a > 0) {
      a = a - 1;
    } else {
      b = b - 1;
    }
  }
	console.log(a + " " + b);
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));