#include <bits/stdc++.h>
using namespace std;
int const N = 5e3 + 5;
long long l, r, n;
long long solv1() {
  long long x = 2;
  long long sum = 1;
  for (int i = 1; i < l; i++) sum += x, x *= 2;
  return sum + (n - l);
}
long long solv2() {
  long long x = 1;
  long long sum = 1;
  for (int i = 1; i < r; i++) {
    x *= 2, sum += x;
  }
  return sum + (n - r) * x;
}
int main() {
  ios_base::sync_with_stdio(0), cin.tie(0);
  cin >> n >> l >> r;
  cout << solv1() << " " << solv2();
}
