#include <bits/stdc++.h>

using namespace std;

long long a ,b,k,x;

int main()
{
    cin>>a>>b>>k;
    x=a;
    a=max(0LL,a-k);
    k-=min(x,k);
    b=max(0LL,b-k);
    cout<<a<<" "<<b<<"\n";
    return 0;
}
