#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m;
  cin >> n >> m;
  for (int i = 1; i <= 500; i++) putchar('9');
  for (int i = 1; i <= 500; i++) putchar('0');
  putchar('1');
  putchar('\n');
  for (int i = 1; i <= 501; i++) putchar('9');
  return 0;
}
