#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, l, r;
  int summin = 1;
  int summax = 1;
  int a = 1;
  scanf("%d%d%d", &n, &l, &r);
  for (int j = 1; j < l; j++) {
    a = a * 2;
    summin += (a);
  }
  summin += n - l;
  a = 1;
  for (int j = 1; j < r && j < n; j++) {
    a = a * 2;
    summax += (a);
  }
  summax += (n - r) * a;
  printf("%d %d\n", summin, summax);
}
