#include <bits/stdc++.h>
using namespace std;
long long f[30];
int main() {
  f[1] = 1;
  for (int i = 2; i <= 25; i++) f[i] = f[i - 1] * 2;
  int n, l, r;
  cin >> n >> l >> r;
  long long mi = 0, ma = 0;
  mi += (n - l + 1);
  for (int i = 2; i <= l; i++) mi += f[i];
  ma += f[r] * (n - r + 1);
  for (int i = 1; i <= r - 1; i++) ma += f[i];
  cout << mi << " " << ma << endl;
}
