#include <bits/stdc++.h>
using namespace std;
int read() {
  char ch = getchar();
  int x = 0, flag = 1;
  for (; !isdigit(ch); ch = getchar())
    if (ch == '-') flag *= -1;
  for (; isdigit(ch); ch = getchar()) x = x * 10 + ch - 48;
  return x * flag;
}
void write(int x) {
  if (x < 0) putchar('-'), x = -x;
  if (x >= 10) write(x / 10);
  putchar(x % 10 + 48);
}
const int Maxn = 1009;
int n, l, r, a[Maxn], b[Maxn];
void init() {
  n = read();
  l = read(), r = read();
}
void solve() {
  a[1] = b[1] = 1;
  for (int i = (2), i_end_ = (n - (l - 1)); i <= i_end_; ++i) a[i] = 1;
  for (int i = (n - (l - 1) + 1), i_end_ = (n); i <= i_end_; ++i)
    a[i] = a[i - 1] * 2;
  int cnt = 1, sum1 = 0, sum2 = 0;
  for (int i = (2), i_end_ = (n); i <= i_end_; ++i)
    if (cnt < r)
      b[i] = b[i - 1] * 2, ++cnt;
    else
      b[i] = b[i - 1];
  for (int i = (1), i_end_ = (n); i <= i_end_; ++i) sum1 += a[i];
  for (int i = (1), i_end_ = (n); i <= i_end_; ++i) sum2 += b[i];
  cout << sum1 << " " << sum2 << endl;
}
int main() {
  init();
  solve();
  return 0;
}
