#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, l, r;
  cin >> n >> l >> r;
  long long int L = 0, R = 0;
  l--;
  L = n - l;
  long long int num = 2;
  while (l--) {
    L += num;
    num = num * 2;
  }
  num = 1;
  n = n - r;
  while (r--) {
    R += num;
    num *= 2;
  }
  num = num / 2;
  while (n--) {
    R += num;
  }
  cout << L << " " << R << endl;
}
