unittest
{
	assert( [ "2 3 3" ].parse.expand.solve == "0 2" );
	assert( [ "500000000000 500000000000 1000000000000" ].parse.expand.solve == "0 0" );
}



import std.algorithm;
import std.conv;
import std.format;
import std.range;
import std.stdio;
import std.typecons;

void main()
{
	stdin.byLineCopy.parse.expand.solve.writeln;
}

auto parse( Range )( Range input )
if( isInputRange!Range && is( ElementType!Range == string ) )
{
	auto abk = input.front.split.to!( long[] );
	return tuple( abk[ 0 ], abk[ 1 ], abk[ 2 ] );
}

auto solve( long a, long b, long k )
{
	return format( "%s %s", max( 0, a - k ), max( 0, b - max( 0, k - a ) ) );
}
