#include <bits/stdc++.h>
using namespace std;
string a, b;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  for (int i = 0; i < 200; i++) {
    a.push_back('9');
    b.push_back('9');
  }
  for (int i = 1; i < 200; i++) {
    a.push_back('0');
  }
  a.push_back('1');
  cout << a << endl << b;
  return 0;
}
