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