#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  ;
  int n, l, r;
  int mn, mx;
  cin >> n >> l >> r;
  mn = n - l + (1 << l) - 1;
  mx = (n - r + 2) * (1 << (r - 1)) - 1;
  cout << mn << " " << mx;
  return 0;
}
