#include <bits/stdc++.h>
using namespace std;
int main() {
  long long i;
  for (i = 1; i <= 126; i++) {
    cout << "9";
  }
  for (i = 1; i <= 126; i++) {
    cout << "0";
  }
  cout << "1\n";
  for (i = 1; i <= 127; i++) cout << "9";
}
