#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;
unsigned long long b, e;
inline void print(unsigned long long x) { cout << x; }
int main() {
  n = read(), a = read(), d = read();
  unsigned long long pw = 1;
  for (register int i = (1); i <= (9); ++i) pw *= 10;
  print(368131125ull * a % pw * 12 * pw + 1);
  cout << " ";
  print(368131125ull * d % pw * 12 * pw);
  return 0;
}
