#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m;
  cin >> n >> m;
  int k = (n + 5) / 5;
  for (int i = 0; i < 2200; i++) cout << "5";
  cout << " ";
  for (int i = 0; i < 2200 - 1; i++) cout << "4";
  cout << "5\n";
}
