#include <bits/stdc++.h>
using namespace std;
const int MAX = 200007;
const int MOD = 1000000007;
void solve() {
  long long n, a, d;
  cin >> n >> a >> d;
  cout << a * 445049 * 1500000 + 1 << " " << d * 445049 * 1500000;
}
int main() {
  ios::sync_with_stdio(false);
  cin.tie(nullptr);
  solve();
}
