#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m;
  cin >> n >> m;
  int k = n / 9 + 1;
  for (int i = 0; i < k; i++) {
    cout << "45";
  }
  cout << endl;
  for (int i = 0; i < k - 1; i++) {
    cout << "54";
  }
  cout << "55";
  cout << endl;
}
