#include <bits/stdc++.h>
using namespace std;
const int inf = 0x3f3f3f3f;
inline long long read() {
  long long x = 0, f = 1;
  char ch = getchar();
  while (ch < '0' || ch > '9') {
    if (ch == '-') f = -1;
    ch = getchar();
  }
  while (ch >= '0' && ch <= '9') {
    x = (x << 1) + (x << 3) + (ch ^ 48);
    ch = getchar();
  }
  return x * f;
}
long long die = 0;
const double eps = 1e-9;
long long mod = 1e9 + 7;
const long long N = 1e6 + 5;
long long n, m;
signed main() {
  n = read(), m = read();
  for (long long i = (1); i <= (2228); i++)
    if (i & 1)
      cout << 5;
    else
      cout << 4;
  cout << 9 << endl;
  for (long long i = (1); i <= (2228); i++)
    if (i & 1)
      cout << 4;
    else
      cout << 5;
  cout << 1;
}
