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