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