"use strict";
function Main(input) {
    var nums = input.split(" ").map(function(value) { return value - 0; });
    console.log((Math.min(nums[1], nums[2])), Math.max((nums[1] + nums[2]) - nums[0], 0));
}

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