#include <bits/stdc++.h>
using namespace std;
int main() {
  long long a, b, c;
  cin >> a >> b >> c;
  long long min = 0, max = 0;
  for (int i = 0; i < c; i++) max += (long long)pow(2, i);
  long long temp = a - c;
  max += temp * pow(2, c - 1);
  for (int i = 0; i < b; i++) min += (long long)pow(2, i);
  temp = a - b;
  min += temp;
  cout << min << ' ' << max << '\n';
  return 0;
}
