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