#include <bits/stdc++.h>
using namespace std;
unsigned long long n, a, d, m = 368131125, mod = 1e9, x = 12e9;
int main() {
  cin >> n >> a >> d;
  cout << m * a % mod * x + 1 << " " << m * d % mod * x;
  return 0;
}
