#include<bits/stdc++.h>
using namespace std;
#define int long long
const int MOD = 1000000007;

signed main(){

    int n, a, b; cin >> n >> a >> b;
    cout << min(a, b) << " " << -min(0LL, n - (a + b)) << endl;
    return 0;
}