#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  int a[22];
  a[0] = 1;
  for (int i = 1; i < 22; i++) a[i] = a[i - 1] * 2;
  int n, l, r;
  cin >> n >> l >> r;
  int min_ = 0;
  int max_ = 0;
  for (int i = 0; i < l; i++) min_ += a[i];
  min_ += (n - l);
  for (int i = 0; i < r; i++) max_ += a[i];
  max_ += (n - r) * a[r - 1];
  cout << min_ << " " << max_ << endl;
  return 0;
}
