#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, l, r;
  cin >> n >> l >> r;
  int max, min;
  min = n - l;
  min += pow(2, l) - 1;
  max = pow(2, r) - 1;
  for (int i = 0; i < n - r; ++i) {
    max += pow(2, r - 1);
  }
  cout << min << " " << max << endl;
}
