#include <bits/stdc++.h>
using namespace std;
long long powm(long long base, long long exp, long long mod = 1000000007) {
  long long ans = 1;
  while (exp) {
    if (exp & 1) ans = (ans * base) % mod;
    exp >>= 1, base = (base * base) % mod;
  }
  return ans;
}
int32_t main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  long long n, l, r;
  cin >> n >> l >> r;
  long long mi = 0, ma = 0;
  for (long long i = 0; i < l; i++) mi += pow(2, i);
  long long rem = n - l;
  mi += rem;
  for (long long i = 0; i < r; i++) ma += pow(2, i);
  long long multiplier = pow(2, r - 1);
  rem = n - r;
  ma += (multiplier * rem);
  cout << mi << " " << ma << endl;
}
