#include <bits/stdc++.h>
using namespace std;
int n, m, c, indi1, indi2, indj1, indj2;
bool ok;
char a[116][116];
int main() {
  cin >> n >> m;
  for (int i = 0; i < n; i++) cout << 5;
  cout << endl;
  for (int i = 0; i < n - 1; i++) cout << 4;
  cout << 5;
}
