#include <bits/stdc++.h>
using namespace std;
void solve() {
  int n, l, r;
  cin >> n >> l >> r;
  long long sumLow = 0, sumHigh = 0, mx = 1;
  for (int i = 0; i < l; i++) {
    sumLow += pow(2, i);
  }
  for (int i = 0; i < r; i++) {
    sumHigh += pow(2, i);
    mx = pow(2, i);
  }
  sumLow += (n - l);
  sumHigh += (n - r) * mx;
  cout << sumLow << " " << sumHigh;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long t = 1;
  while (t--) solve();
  return 0;
}
