var input = require('fs').readFileSync('/dev/stdin', 'utf8');

var list = input.split(' ');

var N = Number(list[0]);

var A = Number(list[1]);

var B = Number(list[2]);

var output = () => {
  if (A + B <= N) {
    if (A < B) {
      console.log(`${A} 0`);
      return;
    } else if(A > B) {
      console.log(`${B} 0`);
      return;
    } else {
      console.log(`${A} 0`);
      return;
    }
  } else {
    if (A < B) {
      console.log(`${A} ${A + B - N}`);
      return;
    } else if (A > B) {
      console.log(`${B} ${A + B - N}`);
      return;
    } else {
      console.log(`${A} ${A + B - N}`);
    }
  }
}

output();
