#include <bits/stdc++.h>
using namespace std;
const int maxn = 22;
long long n, L, R, power[maxn];
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  if (fopen("1.inp", "r")) {
    freopen("1.inp", "r", stdin);
    freopen("1.out", "w", stdout);
  }
  power[0] = 1;
  for (int i = 1; i < maxn; i++) power[i] = power[i - 1] * 2;
  cin >> n >> L >> R;
  cout << (n - L - 1) + power[L] << ' '
       << (n - R) * power[R - 1] + power[R] - 1;
}
