#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ull = unsigned long long;
ll gcd(ll a, ll b) {
  if (b == 0) return a;
  return gcd(b, a % b);
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(NULL);
  int n, m;
  cin >> n >> m;
  for (int i = 0; i < n; ++i) cout << "1";
  cout << '\n';
  for (int i = 0; i < n - 1; ++i) cout << "8";
  cout << "9\n";
}
