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