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