function main(arg) {
	arg = arg.trim().split(' ').map(Number);
	var a = arg[0], b = arg[1], k = arg[2];
	if(a <= k) {
		b = b - (k - a)
		a = 0;
		console.log(a, b >= 0 ? b : 0)
	} else {
		console.log(a-k, b)
	}
}
main(require("fs").readFileSync("/dev/stdin", "utf8"))