#include <bits/stdc++.h>
using namespace std;
int main() {
  for (int i = 0; i < 2230; i++) cout << "5";
  cout << endl;
  for (int i = 0; i < 2229; i++) cout << "4";
  cout << "5" << endl;
  return 0;
}
