#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int n, l, r;
  cin >> n >> l >> r;
  long long int mi = 0, ma = 0, x = 1;
  int t = l;
  while (t--) {
    mi += x;
    x = x * 2;
  }
  mi += (n - l) * 1;
  x = 1;
  t = r;
  while (t--) {
    ma += x;
    x = x * 2;
  }
  x = x / 2;
  ma += (n - r) * x;
  cout << mi << " " << ma;
}
