#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, esq, dir;
  cin >> n >> esq >> dir;
  int summin = 0, summax = 0;
  int last = 1;
  for (int i = 1; i <= esq; i++) summin += last, last *= 2;
  for (int i = esq + 1; i <= n; i++) summin++;
  last = 1;
  for (int i = 1; i <= dir; i++) summax += last, last *= 2;
  for (int i = dir + 1; i <= n; i++) summax += last / 2;
  cout << summin << " " << summax << endl;
  return 0;
}
