#include <bits/stdc++.h>
using namespace std;
int main() {
  string a = "", b = "";
  int n, m;
  cin >> n >> m;
  for (int i = 0; i < 2220; i++) {
    if (i % 2 == 0) {
      a += '5';
      b += '4';
    } else {
      a += '4';
      b += '5';
    }
  }
  a += '5';
  b += '5';
  cout << a << endl;
  cout << b << endl;
}
