#include <bits/stdc++.h>
using namespace std;
int xx[9] = {000, -1, 1, 0, 0, -1, -1, 1, 1};
int yy[9] = {000, 0, 0, 1, -1, 1, -1, 1, -1};
int hx[8] = {1, -1, 2, -2, 2, -2, 1, -1};
int hy[8] = {2, 2, 1, 1, -1, -1, -2, -2};
int kx[8] = {1, 1, 0, -1, 1};
int ky[8] = {1, 0, 1, 0, 0};
double eps = 1e-8;
vector<int> v[200200];
int a[1000][1000];
int main() {
  ios_base::sync_with_stdio(false);
  int n, m;
  cin >> n >> m;
  for (int i = 1; i <= n; i++) cout << 1;
  cout << endl;
  for (int i = 1; i <= n - 1; i++) cout << 8;
  cout << 9;
}
