#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  int n, m;
  cin >> n >> m;
  string n1 = "", n2 = "";
  for (int i = 0; i < 287; i++) n1 += '4';
  n1 += '5';
  for (int i = 0; i < 288; i++) n2 += '5';
  cout << n1 << endl;
  cout << n2 << endl;
  return 0;
}
