#include <bits/stdc++.h>
using namespace std;
const int MX = (1 << 20);
string str[MX];
int main() {
  int n, m;
  cin >> n >> m;
  for (int j = 1; j <= n; j++) cout << 1;
  cout << endl;
  for (int j = 1; j < n; j++) cout << 8;
  cout << 9;
}
