'use strict';

function Main(input) {
  const N = Number(input.split("\n")[0].split(" ")[0]);
  const A = Number(input.split("\n")[0].split(" ")[1]);
  const B = Number(input.split("\n")[0].split(" ")[2]);

  const max = Math.min(A, B);

  let min = 0;
  if ((A + B) >= N) {
    min = (N - A - B) * -1;
  }

  console.log(max + " " + min);

};

Main(require("fs").readFileSync("/dev/stdin", "utf8").trim());
