#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, l, r;
  scanf("%d%d%d", &n, &l, &r);
  printf("%I64d %I64d", (long long)(n - l + (1 << l) - 1),
         (long long)(1 << (r - 1)) * (long long)(n - r + 2) - 1);
}
