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