#include <bits/stdc++.h>
using namespace std;
signed main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  ;
  long long n, l, r;
  cin >> n >> l >> r;
  long long u = pow(2, l) - 1;
  u = u + n - l;
  long long v = pow(2, r) - 1;
  v = v + pow(2, r - 1) * (n - r);
  cout << u << " " << v << "\n";
}
