#include <bits/stdc++.h>
using namespace std;
int main(int argc, char *argv[]) {
  int n, a, b;
  scanf("%d%d%d", &n, &a, &b);
  long long ans1 = 0, ans2 = 0;
  ans1 = n - a + 1;
  int p = 2;
  for (int i = 1; i < a; i++) {
    ans1 += p;
    p *= 2;
  }
  p = 1;
  for (int i = 1; i <= b; i++) {
    ans2 += p;
    p *= 2;
  }
  ans2 += (n - b) * p / 2;
  cout << ans1 << " " << ans2 << endl;
}
