function main(input) {
    const args = input.split(' ');
    const N = parseInt(args[0], 10);
    const A = parseInt(args[1], 10);
    const B = parseInt(args[2], 10);
  var max,min
  
	if(A+B-N>0){
      min = A+B-N
    }else{
      min = 0
    }
  if(A>B){
    max = B
  }else{
    max = A
  }
  
  console.log(max + " " + min)
}

main(require('fs').readFileSync('/dev/stdin', 'utf8'));