#include <bits/stdc++.h>
#define ll long long int
#define ld long double
using namespace std;

void mainSolve()
{
  int n, a, b;
  cin >> n >> a >> b;
  int solved = n - a;
  int rated = n - a - b;
  cout << solved << " " << rated << endl;
}

int main()
{
#ifndef ONLINE_JUDGE
  freopen("input.txt", "r", stdin);
  freopen("output.txt", "w", stdout);
#endif
  int t;
  t = 1;
  while (t--)
  {
    mainSolve();
  }
  return 0;
}