function Main (input) {
  input = input.split("\n")[0].split(" ").map(Number);
  var A = input[0];
  var B = input[1];
  var K = input[2];
  A -= K;
  if (A < 0) {
    B -= Math.abs(A);
    A = 0;
  }
  if (B < 0) {
    B = 0;
  }
  console.log("%d %d", A, B);
}

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