#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, l, r, min1 = 0, x = 1, y = 1, max1 = 0;
  cin >> n >> l >> r;
  min1 += n - l + 1;
  y = y << (r - 1);
  max1 = (n - r + 1) * y;
  while (l > 1) {
    x = x << 1;
    min1 += x;
    l--;
  }
  x = 1;
  while (r > 1) {
    max1 += x;
    x = x << 1;
    r--;
  }
  cout << min1 << " " << max1 << endl;
  return 0;
}
