#include <bits/stdc++.h>
using namespace std;
const int inf = (int)1e9;
const long long linf = (long long)1e18;
const int mod = (int)1e9 + 7;
const long double eps = (long double)1e-8;
const int maxn = (int)1e5 + 5;
const long double pi = acos(-1);
int n, m;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cin >> n >> m;
  int k;
  k = max(n / 2, 10);
  for (auto i = 0; i < k; ++i) {
    if (i != 0) cout << 0;
    cout << 9;
  }
  cout << endl;
  for (auto j = 0; j < k; ++j) {
    cout << 9;
    if (j == k - 1)
      cout << 1;
    else
      cout << 0;
  }
  cout << endl;
  return 0;
}
