function Main(input) {
    const nums = input.split(/\s/).map(str => { return parseInt(str) });
    const max = Math.min(nums[1], nums[2]);
    const min = Math.max(nums[1] + nums[2] - nums[0], 0);
    console.log(max + ' ' + min);
};
Main(require('fs').readFileSync('/dev/stdin', 'utf8'));