#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  long long n, l, r;
  cin >> n >> l >> r;
  long long mn = (1LL << l) - 1 + n - l;
  long long mx = (1LL << r) - 1 + (n - r) * (1LL << (r - 1));
  cout << mn << " " << mx << endl;
  return 0;
}
