function Main(input) {
	input = input.trim().split("\n").map(function(x) { return x.split(" ")});
	let A = parseInt(input[0][0], 10);
	let B = parseInt(input[0][1], 10);
	let K = parseInt(input[0][2], 10);
	let ans;
	if (K <= A) {
		ans = [A - K, B];
	} else {
		ans = [0, Math.max(0, B - (K - A))];
	}
	
	console.log(ans.join(" "));

}

Main(require("fs").readFileSync("/dev/stdin", "utf8"));
