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