#include <bits/stdc++.h>
using namespace std;
int64_t R = 1;
int64_t cnt(int64_t n) {
  int64_t l = 1;
  while (n >= l * 2) l *= 2;
  l /= 2;
  return l;
}
void solution() {
  int64_t n, a, b, w = 0, t = 0;
  cin >> n >> a >> b;
  b = n * b;
  while (n > 1) {
    int64_t c = cnt(n);
    w += 2 * c * a + c * 1;
    n -= c;
  }
  cout << w << " " << b << "\n";
}
int main() {
  for (long long int i = 0; i < R; i++) {
    solution();
  }
  return 0;
}
