// parameter "input" gets all data
function Main(input) {
	// the first line is assigned to input[0], the second line is assigned to input[1] similarly.
	var splitInput = input.split(" ");
	var n = parseInt(splitInput[0])
	var a = parseInt(splitInput[1])
	var b = parseInt(splitInput[2])
	
	var maximum = Math.min(a,b)
	var minimum = Math.max(a+b-n,0)
	//output
	console.log('%d %d',maximum,minimum);
}
// Don't edit this line!
Main(require("fs").readFileSync("/dev/stdin", "utf8"));