#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio();
  cin.tie(0);
  cout.tie(0);
  unsigned long long n, m;
  cin >> n >> m;
  for (int i = 1; i <= 1130; i++) {
    cout << 5;
  }
  cout << endl;
  for (int j = 1; j <= 1129; j++) {
    cout << 4;
  }
  cout << 5 << endl;
}
