#include <bits/stdc++.h>
using namespace std;
int n, m;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0), cout.tie(0);
  cin >> n >> m;
  string a = "", b = "";
  for (int i = 0; i <= 2100; i++) {
    a += '5';
    b += '4';
  }
  b[b.size() - 1] = '5';
  cout << a << '\n' << b;
  cout << '\n';
  return 0;
}
