"use strict";

function Main(input) {
  let nums = input.split(' ').map(x => x*1);
  let Tnum = nums[0] - nums[2];
  let Anum = nums[1];
    if(Tnum < 0){
      Anum = nums[1]  + nums[0]  - nums[2];
      Tnum = 0;
    }
    if(Anum < 0){
      Anum = 0;
    }

  console.log(Tnum + " " +Anum);
}
Main(require("fs").readFileSync("/dev/stdin", "utf8").trim());
