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