#include <bits/stdc++.h>
using namespace std;
const long long mod = 1e9 + 7;
const long long N = 30;
const long long inf = 0x3f3f3f3f;
int main() {
  std::ios::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  long long n, l, r;
  cin >> n >> l >> r;
  long long mn = pow(2, l - 1);
  long long mx = pow(2, r - 1);
  long long ans1 = 2 * mn - 1, ans2 = 2 * mx - 1;
  ans1 += n - l;
  ans2 += (n - r) * mx;
  cout << ans1 << ' ' << ans2 << endl;
  return 0;
}
