"use strict";

function main(input) {
  input = input.trim().split(" ");
  let A = Number(input[0]); // 2
  let B = Number(input[1]); // 1
  let K = Number(input[2]); // 1

  if (A > 0) {
    if (A > K) {
      A = A - K;
      K = 0;
    } else {
      K = K - A;
      A = 0;
    }
  }
  if (B > 0) {
    if (B > K) {
      B = B - K;
      K = 0;
    } else {
      K = K - B;
      B = 0;
    }
  }
  console.log(A, B);
}

main(require("fs").readFileSync("/dev/stdin", "utf-8"));
