#include <bits/stdc++.h>
using namespace std;
int n, m;
bool x;
int main() {
  cin >> n >> m;
  for (int i = 1; i <= 2229; i++) cout << 4;
  cout << 5 << '\n';
  for (int i = 1; i <= 2230; i++) cout << 5;
  cout << '\n';
  return 0;
}
