#include <bits/stdc++.h>
using namespace std;
int32_t main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  long long n, l, r, i = 1;
  cin >> n >> l >> r;
  long long min = (n - l + 1);
  long long max = 0;
  long long nn = n - 1;
  long long num = n - r - 1;
  r--;
  l--;
  while (l) {
    if (l == 0) {
      min = n;
      break;
    }
    min += (2 * i);
    i *= 2;
    l--;
  }
  i = 1;
  while (nn) {
    if (r == 0) {
      max = n - 1;
      break;
    }
    if (r == 1) {
      max += (2 * i);
    } else {
      max += (2 * i);
      i *= 2;
      r--;
    }
    nn--;
  }
  cout << min << " " << max + 1;
  return 0;
}
