#include <bits/stdc++.h>
using namespace std;
struct debugger {
  template <typename T>
  debugger& operator,(const T& v) {
    cerr << v << " ";
    return *this;
  }
} dbg;
void solve() {
  int n, m;
  cin >> n >> m;
  for (int i = 0; i < 200; i++) cout << "9";
  cout << endl;
  for (int i = 0; i < 200; i++) cout << "9";
  for (int i = 0; i < 199; i++) cout << "0";
  cout << "1";
}
int main() {
  ios_base::sync_with_stdio(false);
  int t = 1, num = 1;
  while (t--) {
    ;
    ;
    solve();
    ;
  }
  return 0;
}
