#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  int n, l, r, minn, maxx;
  cin >> n >> l >> r;
  minn = (1 << l) - 1 + (n - l);
  maxx = (1 << r) - 1 + (n - r) * (1 << (r - 1));
  cout << minn << " " << maxx << "\n";
  return 0;
}
