#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, a, d;
  cin >> n >> a >> d;
  long long int b = 667573500001LL, e = 667573500000LL;
  cout << b + (a - 1) * e << " " << d * e << endl;
  return 0;
}
