#include <bits/stdc++.h>
using namespace std;
long long n, l, r;
long long getMin() {
  long long ret = 0ll;
  for (long long i = 1, p = 1; i <= min(l, n); i++, p *= 2) {
    ret += p;
  }
  ret += max(0ll, (n - l));
  return ret;
}
long long getMax() {
  long long ret = 0ll, p = 1ll;
  for (long long i = 1; i <= min(r, n); i++, p *= 2) {
    ret += p;
  }
  p /= 2ll;
  ret += max(0ll, (n - r)) * p;
  return ret;
}
int main() {
  scanf("%lld %lld %lld", &n, &l, &r);
  printf("%lld %lld\n", getMin(), getMax());
  return 0;
}
