#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, l, r;
  cin >> n >> l >> r;
  long long mn[l], t1 = 1, mx[r], sum1 = 0, sum2 = 0;
  for (int i = 0; i < l; i++) {
    mn[i] = t1;
    sum1 += mn[i];
    t1 *= 2;
  }
  for (int i = 0; i < n - l; i++) {
    sum1 += mn[0];
  }
  t1 = 1;
  for (int i = 0; i < r; i++) {
    mx[i] = t1;
    t1 *= 2;
    sum2 += mx[i];
  }
  for (int i = 0; i < n - r; i++) {
    sum2 += mx[r - 1];
  }
  cout << sum1 << " " << sum2;
}
