#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, l, r;
  scanf("%d%d%d", &n, &l, &r);
  int sum1 = 0, sum2 = 0, number = 1;
  for (int i = 0; i < l; i++) {
    sum1 += number;
    number *= 2;
  }
  sum1 += (n - l), number = 1;
  for (int i = 0; i < r; i++) {
    sum2 += number;
    number *= 2;
  }
  sum2 += (n - r) * (number / 2);
  printf("%d %d\n", sum1, sum2);
  return 0;
}
