#include <bits/stdc++.h>
using namespace std;
long long n, l, r, sumin, sumax;
int main() {
  ios_base ::sync_with_stdio(0);
  cin.tie(nullptr);
  cout.tie(nullptr);
  cin >> n >> l >> r;
  long long tmp = 1, cc = n;
  for (int i = 1; i <= l; ++i) {
    sumin += tmp;
    tmp *= 2;
    --cc;
  }
  sumin += cc;
  tmp = 1;
  for (int i = 1; i <= r; ++i) {
    sumax += tmp;
    tmp *= 2;
    --n;
  }
  tmp /= 2;
  sumax += n * tmp;
  cout << sumin << " " << sumax;
}
