#include <iostream>
#include <string>
using namespace std;

int main(){
  long long a, b, n;
  cin >> a >> b >> n;
  cout << (n >= a?0:a - n) << " ";
  n = (n >= a?n - a:0);
  cout << (n >= b?0:b - n);
}
