#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int n, l, r;
  cin >> n >> l >> r;
  int mini[n], maxx[n], num = 1;
  for (int i = 0; i < n; i++) {
    if (l > 0) {
      mini[i] = num;
      l--;
      num *= 2;
    } else {
      mini[i] = 1;
    }
  }
  num = 1;
  bool f = false;
  for (int i = 0; i < n; i++) {
    if (r > 0) {
      maxx[i] = num;
      r--;
      num *= 2;
    } else {
      if (!f) {
        num = num / 2;
        f = true;
      }
      maxx[i] = num;
    }
  }
  long long min_sum = 0, max_sum = 0;
  for (int i = 0; i < n; i++) min_sum += mini[i];
  for (int i = 0; i < n; i++) max_sum += maxx[i];
  cout << min_sum << " " << max_sum << '\n';
  return 0;
}
