import std.algorithm, std.array, std.conv, std.range, std.stdio, std.string;
void main()
{
    auto buf = readln.chomp.split.to!(long[]);
    long a = buf[0], b = buf[1], k = buf[2];
    auto e = a.min(k);
    a -= e;
    k -= e;
    e = b.min(k);
    b -= e;
    k -= e;
    "%d %d".writefln(a, b);
}
