#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, l, r;
  cin >> n >> l >> r;
  long long mn_sum, mx_sum;
  mn_sum = (n - l);
  mn_sum += ((1LL << (long long)l) - 1LL);
  mx_sum = ((1LL << (long long)r) - 1LL);
  mx_sum += (n - r) * (1LL << ((long long)r - 1));
  cout << mn_sum << " " << mx_sum << "\n";
  return 0;
}
