#include <bits/stdc++.h>
using namespace std;
const int MOD = 1e9 + 7;
int main() {
  std ::ios_base ::sync_with_stdio(false);
  cin.tie(NULL), cout.tie(NULL);
  int x, y;
  cin >> x >> y;
  for (int i = 0; i < 1115; ++i) cout << "9";
  cout << endl;
  for (int i = 0; i < 1115; ++i) cout << "9";
  for (int i = 0; i < 1114; ++i) cout << "0";
  cout << "1";
  cout << endl;
}
