unittest
{
	assert( [ "10 3 5" ].parse.expand.solve == "3 0" );
	assert( [ "10 7 5" ].parse.expand.solve == "5 2" );
	assert( [ "100 100 100" ].parse.expand.solve == "100 100" );
}



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

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

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

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