#include <stdio.h>
#import <Foundation/Foundation.h>

int main(int argc, const char * argv[]) {
    long takahashi, aoki, K;
    scanf("%ld %ld %ld", &takahashi, &aoki, &K);

    long minTak = MIN(takahashi, K);
    takahashi -= minTak;
    K -= minTak;
    aoki -= MIN(aoki, K);
    printf("%ld %ld", takahashi, aoki);
    return 0;
}
