#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  int n, m;
  cin >> n >> m;
  for (int i = (1); i <= (n); ++i) cout << 1;
  cout << '\n';
  for (int i = (2); i <= (n); ++i) cout << 8;
  cout << 9;
}
