import std.algorithm;
import std.array;
import std.conv;
import std.math;
import std.range;
import std.stdio;
import std.string;

void main() {
  long a, b, k;
  readf (" %d %d %d", &a, &b, &k);
  //a - Tak
  //b - Ao
  /*
     If Takahashi has one or more cookies, eat one of his cookies.
     Otherwise, if Aoki has one or more cookies, eat one of Aoki's cookies.
     If they both have no cookies, do nothing.
  */
  long u = min (a, k);
  a -= u;
  k -= u;
  long v = min (b, k);
  b -= v;
  k -= v;
  writeln (a, ' ', b);
}

