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