#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, s;
  cin >> a >> s;
  string ss = "";
  int t = 283;
  while (t--) ss.push_back('4');
  t = 282;
  cout << ss << "\n";
  ss = "";
  while (t--) ss.push_back('5');
  ss.push_back('6');
  cout << ss;
  return 0;
}
