#include <bits/stdc++.h>
using namespace std;
int q, a, b, c, d, fa, fb;
int n, k = 0, m, t;
char ch;
int main() {
  int p = 0;
  int x1, y1, x2, y2;
  scanf("%d %d\n", &n, &m);
  for (int i = 0; i <= 300; i++) {
    if (i != 300) {
      putchar('4');
    } else {
      putchar('5');
    }
  }
  putchar('\n');
  for (int i = 0; i <= 300; i++) {
    putchar('5');
  }
  putchar('\n');
}
