#include <bits/stdc++.h>
using namespace std;
int main() {
  long long i, k, j, n, l, m, t, q, x1, y1, x2, y2;
  cin >> n >> m;
  for (i = 0; i < 1199; i++) cout << 8;
  cout << 9 << "\n";
  for (i = 0; i < 1200; i++) cout << 1;
  return 0;
}
