#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, l, r;
  cin >> n >> l >> r;
  long int min = 0, max = 0;
  int v = 1;
  for (int i = 1; i <= n; i++) {
    if (i <= (n - l + 1)) {
      min += v;
    } else {
      v *= 2;
      min += v;
    }
  }
  v = 1;
  for (int i = 1; i <= n; i++) {
    if (i <= r - 1) {
      max += v;
      v *= 2;
    } else {
      max += v;
    }
  }
  cout << min << " " << max << endl;
}
