#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  int n, m;
  cin >> n >> m;
  for (int i = 0; i < 2230 / 2; ++i) cout << 9;
  cout << " ";
  for (int i = 0; i < 2230 / 2; ++i) cout << 9;
  for (int i = 0; i < 2230 / 2 - 1; ++i) cout << 0;
  cout << 1;
}
