#include <bits/stdc++.h>
using namespace std;
void solve() {
  int64_t n, l, r;
  cin >> n >> l >> r;
  int64_t sum_of_other_val = pow(2, l) - 2;
  for (int64_t i = 0; i < n - l + 1; i++) {
    sum_of_other_val += 1;
  }
  cout << sum_of_other_val << " ";
  int64_t sum_of_other_val2 = 0;
  int64_t j = 0;
  for (int64_t i = 0; i < r; i++) {
    sum_of_other_val2 += pow(2, j);
    j++;
  }
  int64_t diff = n - r;
  for (int64_t i = 0; i < diff; i++) {
    sum_of_other_val2 += pow(2, r - 1);
  }
  cout << sum_of_other_val2 << '\n';
}
signed main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int64_t test = 1;
  while (test--) {
    solve();
  }
}
