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