#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  int n, m;
  cin >> n >> m;
  string s1, s2;
  for (int i = 0; i < 2229; i++) s1.push_back('5'), s2.push_back('4');
  s1.push_back('5'), s2.push_back('5');
  cout << s1 << endl << s2 << endl;
  return 0;
}
