#include <bits/stdc++.h>
using namespace std;
inline int read() {
  char c = getchar();
  int x = 0;
  bool f = 0;
  for (; !isdigit(c); c = getchar()) f ^= !(c ^ 45);
  for (; isdigit(c); c = getchar()) x = (x << 1) + (x << 3) + (c ^ 48);
  if (f) x = -x;
  return x;
}
int n, a, d;
signed main() {
  n = read(), a = read(), d = read();
  int pw = 1e9;
  cout << 368131125ull * a % pw * 12 * pw + 1 << ' ';
  cout << 368131125ull * d % pw * 12 * pw;
  return 0;
}
