#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int n, l, r;
  cin >> n >> l >> r;
  long long int mins = (n - l + 1) + 2 * (pow(2, l - 1) - 1);
  long long int maxs = pow(2, r - 1) * (n - r + 2) - 1;
  cout << mins << " " << maxs << "\n";
  return 0;
}
