"use strict"
function Main(input) {
  input = input.trim().split(' ').map(Number);
  let A = input[0];
  let B = input[1];
  let K = input[2];

  A = A - K;
  if(A < 0) B = B + A, A = 0;
  if(B < 0) B = 0;
  console.log(A, B);
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));