#include <bits/stdc++.h>

using namespace std;

int main()
{
	long long a, b, k;
	cin >> a >> b >> k;
	if(k < a) a -= k;
	else{
		b -= (k - a);
		a = 0;
	}
	if(b < 0) b = 0;
	cout << a << " " << b << endl;
}
