#include <bits/stdc++.h>
using namespace std;
int arr[20];
int main() {
  arr[0] = 1;
  for (int i = 1; i < 20; ++i) {
    arr[i] = arr[i - 1] * 2;
  }
  int n, l, r;
  cin >> n >> l >> r;
  int minimo, maximo;
  minimo = maximo = 0;
  for (int i = 0; i < l; ++i) {
    minimo += arr[i];
  }
  minimo += (n - l);
  for (int i = 0; i < r; ++i) {
    maximo += arr[i];
  }
  maximo += arr[r - 1] * (n - r);
  cout << minimo << " " << maximo << endl;
}
