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