#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
  ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0);
  ll N, L, R;
  cin >> N >> L >> R;
  cout << (1ll << L) - 1 + (N - L) << ' '
       << (1ll << (R - 1)) * (N - R) + (1ll << R) - 1 << '\n';
  return 0;
}
