#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, l, r;
  cin >> n >> l >> r;
  unsigned int number[r];
  number[0] = 1;
  for (int i = 1; i < r; ++i) {
    number[i] = number[i - 1] << 1;
  }
  int minSum = 0;
  for (int i = 0; i < l; ++i) {
    minSum += number[i];
  }
  minSum += (n - l);
  int maxSum = 0;
  for (int i = 0; i < r; ++i) {
    maxSum += number[i];
  }
  maxSum += number[r - 1] * (n - r);
  cout << minSum << ' ' << maxSum << '\n';
  return 0;
}
