function Main (input) {
  input = input.split(" ").map(inp => parseInt(inp, 10));
  var A = input[0], B = input[1], K = input[2];
  if (A >= K) console.log("%d %d", A-K, B);
  else if (A+B < K) console.log("0 0");
  else console.log("%d %d", K-A , (K-A)-B);
}
 
Main(require("fs").readFileSync("/dev/stdin", "utf8"));
