#include <bits/stdc++.h>
#pragma GCC optimize("O3")
using namespace std;
int n, m;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  cin >> n >> m;
  for (int i = 1; i <= 2229; ++i) cout << "1";
  cout << '\n';
  for (int i = 1; i <= 2228; ++i) cout << "8";
  cout << "9";
  return 0;
}
