#include <bits/stdc++.h>
using namespace std;
template <typename T = long long>
T input() {
  T res;
  cin >> res;
  return res;
}
template <typename It>
void input_seq(It begin, It end, istream &in = cin) {
  generate(begin, end,
           input<typename remove_reference<decltype(*begin)>::type>);
}
template <class It>
void output(It begin, It end, ostream &out = cerr) {
  while (begin != end) {
    out << *(begin++) << ' ';
  }
  out << endl;
}
signed main() {
  ios_base::sync_with_stdio(false);
  cin.tie(nullptr);
  cout.tie(nullptr);
  long long n = input();
  long long l = input();
  long long r = input();
  long long mx = -1;
  cout << n - l + (1 << l) - 1 << ' ';
  cout << (1 << r) - 1 + (1 << (r - 1)) * (n - r) << endl;
}
