#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m;
  cin >> n >> m;
  string s1 = "", s2 = "";
  while (n--) {
    s1 += "1";
    s2 += "8";
  }
  s2[s2.length() - 1] = '9';
  cout << s1 << "\n" << s2 << "\n";
}
