#include <bits/stdc++.h>
using namespace std;
const long long T = 614945049;
const long long MOD = 1000000000;
long long n, a, d;
inline void File() {
  freopen(".in", "r", stdin);
  freopen(".out", "w", stdout);
}
signed main() {
  scanf("%lld %lld %lld", &n, &a, &d);
  cout << (T * a % MOD * 15 * (MOD / 10) + 1) << " "
       << (T * d % MOD * 15 * (MOD / 10)) << endl;
  return 0;
}
