#include <bits/stdc++.h>
using namespace std;
#define ll long long
int main() {
  ll A,B,K;
  cin>>A>>B>>K;
  if(K<=A){
    cout<<A-K<<" "<<B<<endl; 
  }
  else{
    cout<<0<<" "<<max((ll)0,B+A-K)<<endl; 
  }
}
