#include <bits/stdc++.h>
using namespace std;
int n, l, r;
long long ans, t;
int main() {
  scanf("%d %d %d", &n, &l, &r);
  ans = n - l;
  t = 1;
  for (int i = 1; i <= l; i++) ans += t, t <<= 1;
  printf("%lld ", ans);
  t = 1;
  for (int i = 1; i < r; i++) t <<= 1;
  ans = (n - r) * t;
  for (int i = 1; i <= r; i++) ans += t, t >>= 1;
  printf("%lld\n", ans);
}
