#include <bits/stdc++.h>
#define REP(i, a, n) for (ll i = ((ll) a); i < ((ll) n); i++)
using namespace std;
typedef long long ll;

int main(void) {
  ll N, A, B;
  cin >> N >> A >> B;

  cout << min(A, B) << " " << max(A + B - N, 0LL) << endl;
}