#include <bits/stdc++.h>
using namespace std;
namespace fastIO {
void read(long long &x) {
  long long f = 1;
  x = 0;
  char ch = getchar();
  while (!isdigit(ch)) {
    if (ch == '-') f = -1;
    ch = getchar();
  }
  while (isdigit(ch)) {
    x = x * 10 + ch - '0';
    ch = getchar();
  }
  x *= f;
}
void fput(long long x) {
  if (x < 0) putchar('-'), x = -x;
  if (x >= 10) fput(x / 10);
  putchar(x % 10 + '0');
}
}  // namespace fastIO
using namespace fastIO;
int main() {
  long long n, l, r;
  read(n), read(l), read(r);
  long long ans1 = (1 << (l - 1)) * 2 - 1 + n - l;
  long long ans2 = (1 << (r - 1)) * 2 - 1 + (n - r) * (1 << (r - 1));
  printf("%I64d %I64d\n", ans1, ans2);
}
