#include<iostream>
using namespace std;
int main(){
  long long T,A,C;
  cin>>T>>A>>C;
  if(T<=C){
    C-=T;
    T=0;
    if(A<=C)A=0;
    else A-=C;
  }
  else T-=C;
  cout<<T<<' '<<A<<endl;
  return 0;
}