#include <iostream>
using namespace std;

void _140() {
    int n;
    cin >> n;

    int a[20];
    int b[20];
    int c[20];
    for (int i = 0; i < n; ++i) 
        cin >> a[i];
    for (int i = 0; i < n; ++i) 
        cin >> b[i];
    for (int i = 0; i < n - 1; ++i) 
        cin >> c[i];

    int score = 0;
    for (int i = 0; i < n - 1; ++i) {
        score += b[a[i] - 1];
        if (a[i + 1] == a[i] + 1) {
            score += c[a[i] - 1];
        }
        // cout << score << endl;
    }
    score += b[a[n - 1] - 1];

    cout << score << endl;
}

#include <string>
void _141() {
    string s;
    cin >> s;
    bool judge = true;
    for (int i = 0; i < s.size(); ++i) {
        if ((i + 1) % 2 == 0 && s[i] == 'R') {
            judge = false;
            break;
        } else if ((i + 1) % 2 == 1 && s[i] == 'L') {
            judge = false;
            break;
        }
    }

    if (judge) 
        cout << "Yes" << endl;
    else
        cout << "No" << endl;
}

void _142() {
    int n, k;
    cin >> n >> k;
    int count = 0;
    int h;
    for (int i = 0; i < n; ++i) {
        cin >> h;
        if (h >= k)
            count++;
    }
    cout << count << endl;
}

void _143() {
    int n;
    cin >> n;
    int d[50];
    for (int i = 0; i < n; ++i) {
        cin >> d[i];
    }

    int value = 0;
    for (int i = 0; i < n - 1; ++i) {
        for (int j = i + 1; j < n; ++j) {
            value += d[i] * d[j];
        }
    }
    cout << value << endl;
}

void _144() {
    int n;
    cin >> n;

    for (int i = 1; i <= 9; ++i) {
        for (int j = 1; j <= 9; ++j) {
            if (i * j == n) {
                cout << "Yes" << endl;
                return;
            }
        }
    }
    cout << "No" << endl;
}

void _145() {
    int n;
    string s;
    cin >> n;
    cin >> s;

    if (s.size() %2 ==1) {
        cout << "No" << endl;
        return;
    }

    string first = s.substr(0, s.size() / 2);
    string second = s.substr(s.size() / 2, s.size());
    if (first == second)
        cout << "Yes" << endl;
    else
        cout << "No" << endl;
}

void _146() {
    int n;
    cin >> n;
    string s;
    cin >> s;

    for (int i = 0; i < s.size(); ++i) {
        s[i] = s[i] + n;
        if (s[i] > 90) {
            s[i] = '@' + (s[i] - 90);
        }
    }
    cout << s << endl;
}

void _147() {
    string s;
    cin >> s;

    int middle = (s.size() + 2 - 1) / 2;
    int count = 0;
    for (int i = 0; i < middle; ++i) {
        if (s[i] != s[s.size() - 1 - i])
            count++;
    }
    cout << count << endl;
}

void _148() {
    int n;
    string s, t;
    cin >> n;
    cin >> s >> t;

    string result;
    for (int i = 0; i < n; ++i) {
        result += s[i];
        result += t[i];
    }
    cout << result << endl;
}

#include <cmath>
#include <math.h>
void _149() {
    long long a, b, k;
    cin >> a >> b >> k;

    long long aa, bb;
    if ((a + b - k) < 0) {
        aa = 0;
        bb = 0;
    } else if (k > a) {
        aa = 0;
        bb = b - (k - a);
    } else {
        aa = a - k;
        bb = b;
    }
    cout << aa << " " << bb << endl;

}

int main()
{
    _149();
    return 0;
}



Measured memory_bytes: 256