#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, l, r;
  while (cin >> n >> l >> r) {
    long long ansmin = 0, ansmax = 0;
    ansmin = n - l + (1ll << l) - 1;
    ansmax = (1 << r) - 1 + (n - r) * (1ll << (r - 1));
    cout << ansmin << " " << ansmax << endl;
  }
  return 0;
}
