#include <bits/stdc++.h>
using namespace std;
const long long N = 1e5 + 5;
int main() {
  int n, l, r;
  long long mnSum = 0, mxSum = 0;
  cin >> n >> l >> r;
  mnSum = (1LL << l) - 1 + (n - l);
  mxSum = (1LL << r) - 1 + (n - r) * ((1LL << (r - 1)));
  cout << mnSum << " " << mxSum;
}
