#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, l, r, a = 1, b = 1;
  cin >> n >> l >> r;
  int min_sum = 1;
  int max_sum = 1;
  for (int i = 1; i < n; i++) {
    if (i < l) {
      a *= 2;
      min_sum += a;
    } else {
      min_sum += 1;
    }
    if (i < r) {
      b *= 2;
      max_sum += b;
    } else {
      max_sum += b;
    }
  }
  cout << min_sum << " " << max_sum << endl;
  return 0;
}
