#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b;
  cin >> a >> b;
  for (int i = 0; i <= 2000; i++) cout << 5;
  cout << '\n';
  for (int i = 0; i <= 1999; i++) cout << 4;
  cout << 5 << endl;
  return 0;
}
