#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m;
  cin >> n >> m;
  string s1 = "", s2 = "";
  for (int i = 0; i < n; i++) {
    s1 += '1';
    if (i != n - 1) s2 += '8';
  }
  s2 += '9';
  cout << s1 << "\n" << s2;
  return 0;
}
