function main(arg) {
	arg = arg.trim().split(' ').map(str => parseInt(str, 10));
  	var a = arg[0], b = arg[1], k = arg[2],
		num = Math.min(a, k);
  	a -= num;
  	k -= num;
  	num = Math.min(b, k);
  	b -= num;
	console.log(a, b)
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));