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