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