#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, m, div;
  scanf("%lld%lld", &n, &m);
  div = n / 9;
  for (long long i = 0; i <= div; i++) {
    printf("9");
  }
  printf("\n");
  for (long long i = 0; i <= div; i++) printf("9");
  for (long long i = 0; i < div; i++) printf("0");
  printf("1");
}
