#include <bits/stdc++.h>
char s1[333], s2[333];
int main() {
  s1[330] = '5';
  s2[330] = '5';
  for (int i = 329; i >= 0; i--)
    if (i % 2) {
      s1[i] = '5';
      s2[i] = '4';
    } else {
      s1[i] = '4';
      s2[i] = '5';
    }
  int n, m;
  scanf("%d%d", &n, &m);
  printf("%s\n%s\n", s1, s2);
  return 0;
}
