#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m, i, j;
  cin >> n >> m;
  for (i = 0; i < n; i++) cout << 5;
  cout << endl;
  for (i = 0; i < n - 1; i++) cout << 4;
  cout << 5;
  cout << endl;
}
