#include <bits/stdc++.h>
using namespace std;
int main() {
  char s[100010];
  int i, j;
  int cnt = 0;
  int one = 0;
  int l, r;
  int n;
  int flag = 0;
  scanf("%d%d%d", &n, &l, &r);
  long long sum = 1;
  long long c = 1;
  for (i = 2; i <= l; i++) {
    c *= 2;
    sum += c;
  }
  long long lsum = sum;
  for (; i <= r && i <= n; i++) {
    c *= 2;
    lsum += c;
  }
  lsum += c * (n - (i - 1));
  sum += (n - l);
  printf("%I64d %I64d\n", sum, lsum);
  return 0;
}
