#include <bits/stdc++.h>
using namespace std;
const int size1 = 4e5 + 500;
const long long mod = 1e9 + 7;
const long long INF = 2e18;
const double eps = 1e-5;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int n, m;
  cin >> n >> m;
  for (int i = 1; i <= n; i++) {
    cout << 1;
  }
  cout << "\n";
  for (int i = 1; i <= n - 1; i++) {
    cout << 8;
  }
  cout << 9;
  return 0;
}
