#include <stdio.h>
typedef long long ll;

int main(void) {
  ll a, b, k;
  scanf("%lld%lld%lld", &a, &b, &k);
  a -= k;
  if(a < 0) b += a, a = 0;
  if(b < 0) b = 0;
  printf("%lld %lld", a, b);
  return 0;
}