#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, l, r, mn, mx, x, y, z;
  cin >> n >> l >> r;
  if (n == 1) {
    cout << 1 << " ";
    y = 1;
    for (int i = 1; i < r; i++) {
      y *= 2;
    }
    cout << y << endl;
  } else {
    if (l == 1) {
      mn = n;
    } else {
      x = l - 1;
      mn = (n - x);
      y = 1;
      for (long long i = 0; i < x; i++) {
        y *= 2;
        mn += y;
      }
    }
    if (r == 1)
      mx = n;
    else {
      y = 1;
      mx = 1;
      z = r - 2;
      long long p = n - z - 1;
      for (long long i = 0; i < z; i++) {
        y *= 2;
        mx += y;
      }
      y *= 2;
      mx += (y * p);
    }
    cout << mn << " " << mx << endl;
  }
  return 0;
}
