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