#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int a, b, c, d, e, f, g, h, i, j;
  int r[200], r2[200];
  string s, t;
  while (cin >> a >> b >> c) {
    long long int p, q, u, v, w;
    p = b - 1;
    g = 0;
    for (q = 1, v = 1; q <= p; q++) {
      g += (v * 2);
      v = v * 2;
    }
    g += ((a - p));
    i = 0;
    for (e = 1, f = 1; e <= a; e++) {
      if (e >= c) {
        i += (f);
      } else {
        i += (f);
        f = f * 2;
      }
    }
    cout << g << " " << i << endl;
  }
  return 0;
}
