int main(int argc, const char * argv[]) {
    long takahashi, aoki, K;
    scanf("%ld %ld %ld", &takahashi, &aoki, &K);
    for (long i=0; i<K; i++) {
        if(K == 0 || (takahashi == 0 && aoki == 0)) {
            break;
        };
        if (takahashi >= 1) {
            takahashi --;
        } else {
            aoki --;
        }
    }
    printf("%ld %ld", takahashi, aoki);
    return 0;
}
