const fs = require("fs");

function clamp(n) {
  if (n < 0) {
    return 0;
  }
  return n;
}
const input = fs.readFileSync("/dev/stdin", { encoding: "utf8" }).split(" ");
const A = parseInt(input[0]);
const B = parseInt(input[1]);
const K = parseInt(input[2]);

const a = clamp(A - K);
const delta = clamp(K - A);
const b = clamp(B - delta);
console.log(a + " " + b);
