#include <bits/stdc++.h>
using namespace std;
const int N = 3e5 + 1;
const int M = 3e4 + 1;
const int INF = 1e9 + 7;
long long mn = 1, mx = 1, x;
int main() {
  int n, l, r;
  cin >> n >> l >> r;
  x = 1;
  for (int i = 2; i <= l; ++i) x = x * 2, mn += x;
  mn += n - l;
  int x = 1;
  for (int i = 2; i <= r; ++i) x = x * 2, mx += x;
  mx += (n - r) * x;
  cout << mn << " " << mx;
}
