#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, l, r;
  cin >> n >> l >> r;
  long long ans_min = 0;
  long long d = 1;
  for (int i = 1; i <= l; i++, d *= 2) {
    ans_min += d;
  }
  ans_min += (n - l);
  long long ans_max = 0;
  d = 1;
  for (int i = 1; i <= r; i++, d *= 2) {
    ans_max += d;
  }
  ans_max += (n - r) * (d / 2);
  cout << ans_min << ' ' << ans_max;
  return 0;
}
