#include <bits/stdc++.h>
using namespace std;
long long n, a, b, x = 945049, m = 15e6;
signed main() {
  scanf("%lld %lld %lld", &n, &a, &b);
  printf("%lld %lld", a * x % m * m + 1, b * x % m * m);
}
