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