#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
const int maxn = 1e6 + 5;
const ll INF = 1e18 + 5;
const ll mod = 1e9 + 7;
const double pi = 3.14159265358979;
ll POW(ll a, ll b, ll MMM = mod) {
  ll ret = 1;
  for (; b; b >>= 1, a = (a * a) % MMM)
    if (b & 1) ret = (ret * a) % MMM;
  return ret;
}
int run_test() {
  ll n;
  cin >> n;
  int l, r;
  cin >> l >> r;
  ll mn = n + 1 - l;
  int t = l - 1;
  int add = 2;
  while (t--) {
    mn += add;
    add *= 2;
  }
  ll mx = 0;
  t = r - 1;
  add = 1;
  while (t--) {
    mx += add;
    add *= 2;
  }
  mx += (n + 1 - r) * add;
  cout << mn << " " << mx << '\n';
  return 0;
}
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0), cout.tie(0);
  int tt;
  tt = 1;
  while (tt--) {
    run_test();
  }
  return 0;
}
