#include <bits/stdc++.h>
using namespace std;
long long Set(long long N, long long pos) { return N = N | (1 << pos); }
long long reset(long long N, long long pos) { return N = N & ~(1 << pos); }
int main() {
  int n, m;
  cin >> n >> m;
  string a = "", b = "";
  for (int i = 0; i < n; i++) {
    a += '1';
    b += '8';
  }
  b[b.size() - 1] = '9';
  cout << a << endl << b << endl;
  return 0;
}
