'use strict'
const Main = (arg) => {
  let input = arg.trim().split('\n');
  let A = input[0].split(' ').map(Number)[0];
  let B = input[0].split(' ').map(Number)[1];
  let K = input[0].split(' ').map(Number)[2];

  let a = 0;
  let b = 0;
  if ((A - K) >= 0) {
    a = A - K;
    b = B;
  } else {
    if ((A + B - K) >= 0) {
      a = 0;
      b = A + B - K;
    } else {
      a = 0;
      b = 0;
    }
  }
  console.log(a, b)
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));
