function main(input) {
    const args = input.split(' ');
    const N = parseInt(args[0], 10);
    var A = parseInt(args[1], 10);
    var B = parseInt(args[2], 10);

    var max=0;
    var min=0;
    var ans_max=0;

    if(A<B) {
        max = B;
        ans_max = A;
    } else {
        max = A;
        ans_max = B;
    }

    if(N < A + B) {
        min = A + B - N;
    } else {
        min = 0;
    }

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

}

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