#include <bits/stdc++.h>
using namespace std;
int n, m;
int inline read() {
  int x = 0, f = 1;
  char ch = getchar();
  while (!isdigit(ch)) f = (ch == '-') ? -f : f, ch = getchar();
  while (isdigit(ch)) x = (x << 3) + (x << 1) + ch - '0', ch = getchar();
  return x * f;
}
int main() {
  n = read(), m = read();
  for (int i = 1; i <= 2230; i++) cout << 5;
  putchar('\n');
  for (int i = 1; i <= 2229; i++) cout << 4;
  cout << 5;
  return 0;
}
