#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, l, r;
  cin >> n >> l >> r;
  unsigned long long min, max;
  min = pow(2, l) - 1 + n - l;
  max = pow(2, r) - 1 + (n - r) * pow(2, r - 1);
  cout << min << " " << max << "\n";
}
