#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int n, l, r;
  cin >> n >> l >> r;
  int minn = 0;
  if (n > l) {
    minn = n - (l - 1);
    int cnt = minn;
    for (int i = 2; true; i *= 2) {
      if (cnt >= n) {
        break;
      }
      minn += i;
      cnt++;
    }
  } else {
    int cnt = 0;
    for (int i = 1; true; i *= 2) {
      if (cnt >= n) {
        break;
      }
      minn += i;
      cnt++;
    }
  }
  int maxx = 0;
  if (n > r) {
    int temp = 0;
    int cnt = 0;
    int maxTemp = -1;
    for (int i = 1; true; i *= 2) {
      if (cnt >= r) {
        break;
      }
      temp += i;
      cnt++;
      maxTemp = i;
    }
    maxx = temp + (n - r) * maxTemp;
  } else {
    int temp = 0;
    int cnt = 0;
    for (int i = 1; true; i *= 2) {
      if (cnt >= r) {
        break;
      }
      temp += i;
      cnt++;
    }
    maxx = temp;
  }
  cout << minn << " " << maxx << endl;
  return 0;
}
