#include <bits/stdc++.h>
using namespace std;
int n, l, r;
int cal_min() {
  int res = 0;
  int tmp = 1;
  for (int i = 0; i < l; i++) {
    res += tmp;
    tmp *= 2;
  }
  res += n - l;
  return res;
}
int cal_max() {
  int res = 0;
  int tmp = 1;
  for (int i = 0; i < r; i++) {
    res += tmp;
    tmp *= 2;
  }
  tmp /= 2;
  res += (n - r) * tmp;
  return res;
}
int main() {
  cin >> n >> l >> r;
  int mn = cal_min();
  int mx = cal_max();
  cout << mn << ' ' << mx;
}
