#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, l, r;
  cin >> n >> l >> r;
  long int low = (n - l - 1);
  long int dummy = (int)pow(2.0, (double)l);
  low = low + dummy;
  cout << low << ' ';
  dummy = (int)pow(2.0, (double)(r - 1));
  long int max = 2 * dummy + (n - r) * dummy - 1;
  cout << max;
  return 0;
}
