#include <bits/stdc++.h>
using namespace std;
long long t = 1, n, m, k, sum, c, l, r, d, mx = -1e9, h, j, mn = 1e9, sum1,
          sum2, i, x, y;
long long a[11111117], b[1111117];
string s, u, w;
vector<long long> d1;
vector<long long> d2;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(NULL);
  cout.tie(NULL);
  while (t--) {
    cin >> n >> l >> r;
    for (int i = 0; i < r; ++i) {
      k += pow(2, i);
      if (i == l - 1) x = k;
    }
    cout << n - l + x << " " << fixed << setprecision(0)
         << (n - r) * pow(2, r - 1) + k;
  }
}
