#include <bits/stdc++.h>
int main() {
  int n, m, x;
  scanf("%d%d", &n, &m);
  x = (n + 3) / 4;
  for (int i = 0; i < x; i++) printf("5");
  printf("\n");
  for (int i = 0; i < x - 1; i++) printf("4");
  printf("5\n");
}
