#include <bits/stdc++.h>
using namespace std;
int32_t main() {
  long long n, m;
  cin >> n >> m;
  for (long long i = 0; i < n; i++) cout << "1";
  cout << "\n";
  for (long long i = 0; i < n - 1; i++) cout << "8";
  cout << "9\n";
  return 0;
}
