#include <bits/stdc++.h>
using namespace std;
signed main() {
  long long n, l, r;
  cin >> n >> l >> r;
  long long minsum = 0, maxsum = 0;
  long long x = 1;
  minsum = 1;
  for (long long i = 2; i <= l; i++) {
    x *= 2;
    minsum += x;
  }
  minsum += (n - l);
  x = 1;
  maxsum = 1;
  for (long long i = 2; i <= r; i++) {
    x *= 2;
    maxsum += x;
  }
  maxsum += x * (n - r);
  cout << minsum << " " << maxsum << '\n';
  return 0;
}
