function Main(input) {
var x = new Array(2);
    	var n = parseInt(imput[0], 10);
    	var a = parseInt(imput[1], 10);
    	var b = parseInt(imput[2], 10);
    	//出力
if (a>b){
x[0] = b;
}else{
x[1] = a;
}
x[2] = (a-n/2)+(b-n/2);
    	console.log('%d %s',x[1],x[2]);
}
    Main(require("fs").readFileSync("/dev/stdin", "utf8"));