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