// B - Greedy Takahashi
#include <bits/stdc++.h>
using namespace std;

int main(){
	long long A,B,K; cin>>A>>B>>K;
	if(A > K) A -= K;
	else{
		B = K-A>B? 0:B-K+A;
		A = 0;
	}
	cout<<A<<" "<<B<<endl;
}