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