#include <bits/stdc++.h>
using namespace std;
const int inf = 0x3f3f3f3f;
const long long INF = 0x3f3f3f3f3f3f3f3f;
int n, l, r;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cin >> n >> l >> r;
  int cnt = 1;
  int x;
  int res = 0;
  for (int i = 1; i <= n - l + 1; i++) {
    res++;
    x = i;
  }
  for (int i = x + 1; i <= n; i++) {
    cnt *= 2;
    res += cnt;
  }
  cout << res << " ";
  res = 1;
  cnt = 1;
  x = 1;
  for (int i = 2; i <= r; i++) {
    cnt *= 2;
    res += cnt;
    x = i;
  }
  for (int i = x + 1; i <= n; i++) {
    res += cnt;
  }
  cout << res << '\n';
  return 0;
}
