#include <bits/stdc++.h>
using namespace std;
const long long MAXN = 2e6 + 1;
const long long INF = 2e9 + 1;
const long long MOD = (1e9 + 7);
void bye() {
  cout << '\n';
  exit(0);
}
signed main() {
  ios::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long n, l, r;
  cin >> n >> l >> r;
  long long answer = 0;
  long long cur = 1;
  for (long long i = 0; i < l; i++) {
    answer += cur;
    cur *= 2;
  }
  cout << answer + n - l << '\n';
  answer = 0;
  cur = 1;
  for (long long i = 0; i < r; i++) {
    answer += cur;
    cur *= 2;
  }
  cout << answer + (n - r) * cur / 2;
  bye();
}
