//HovalHaq!
#include <bits/stdc++.h>
using namespace std;

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