#include <bits/stdc++.h>
using namespace std;
char str[120][120];
int main() {
  int n, i, j, k, sum, x1, y1, x2, y2, m;
  scanf("%d%d", &n, &m);
  for (i = 1; i <= 2000; i++) printf("5");
  printf("\n");
  for (i = 1; i <= 1999; i++) printf("4");
  printf("5\n");
  return 0;
}
