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