#include <bits/stdc++.h>
using namespace std;
const int mod = 1000000007;
int main() {
  ios::sync_with_stdio(false);
  int n, l, r;
  cin >> n >> l >> r;
  cout << (1 << l) - 1 + n - l << ' '
       << (1 << r) - 1 + (1 << (r - 1)) * (n - r);
}
