import std.stdio, std.conv, std.string, std.bigint;
import std.math, std.random, std.datetime;
import std.array, std.range, std.algorithm, std.container, std.format;
string read(){ static string[] ss; while(!ss.length) ss = readln.chomp.split; string res = ss[0]; ss.popFront; return res; }

void main(){
	long n = read.to!long;
	long a = read.to!long;
	long b = read.to!long;
	
	long x, y;
	if(a + b < n) x = 0; else x = (a + b) - n;
	y = min(a, b);
	
	writeln(y, " ", x);
	
	
}
