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

long* countCookies(long takahashi, long aoki, long K) {
      if(K == 0 || (takahashi == 0 && aoki == 0)) {
          long res[2] = {takahashi, aoki};
          return res;
    };
  
      if (takahashi >= 1) {
          takahashi --;
    } else {
        aoki --;
    }
      return countCookies(takahashi, aoki, K-1);
}

int main(int argc, const char * argv[]) {
        long takahashi, aoki, K;
      scanf("%ld %ld %ld", &takahashi, &aoki, &K);
      
      long * result = countCookies(takahashi, aoki, K);
     printf("%ld %ld",result[0], result[1]);
    return 0;
}


