#include <bits/stdc++.h>
int main() {
  int n, l, r, s, c = 1, min = 0, max = 1, i;
  scanf("%d%d%d", &n, &l, &r);
  s = l - 1;
  for (i = 1; i <= s; i++) {
    c *= 2;
    min += c;
  }
  min += (n - s);
  c = 1;
  for (i = 1; i < r; i++) {
    c *= 2;
    max += c;
  }
  for (i = 1; i <= n - r; i++) {
    max += c;
  }
  printf("%d ", min);
  printf("%d\n", max);
}
