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

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