#include <bits/stdc++.h>
using namespace std;
int n, m, a, b;
string ans;
template <typename T>
void read(T &a) {
  a = 0;
  char c = getchar();
  T f = 1;
  while (!isdigit(c)) {
    if (c == '-') f = -1;
    c = getchar();
  }
  while (isdigit(c)) {
    a = a * 10 + c - '0';
    c = getchar();
  }
  a *= f;
}
int main() {
  read(n);
  read(m);
  for (int i = 1; i <= 1114; i++) cout << 90;
  cout << 9 << endl;
  for (int i = 1; i <= 1114; i++) cout << 90;
  cout << 91 << endl;
  return 0;
}
