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