#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m;
  cin >> n >> m;
  for (int i = 1; i <= 900; i++) cout << 3;
  cout << 4 << endl;
  for (int i = 1; i <= 901; i++) cout << 6;
  cout << endl;
}
