#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int n, m;
  scanf("%d%d", &n, &m);
  int t = (n + 3) / 4;
  for (int i = 0; i < t; i++) putchar('5');
  putchar('\n');
  for (int i = 1; i < t; i++) putchar('4');
  putchar('5');
  putchar('\n');
  return 0;
}
