#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m;
  scanf("%d%d", &n, &m);
  for (int i = 0; i < 300; ++i) printf("5");
  printf("\n");
  for (int i = 0; i < 300; ++i) printf(i == 299 ? "5" : "4");
  printf("\n");
}
