#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  long long int n, m;
  cin >> n >> m;
  long long int ans1[451];
  long long int ans2[451];
  for (long long int i = 0; i < 451; i++) {
    ans1[i] = 5;
    ans2[i] = 4;
  }
  ans2[450] = 5;
  for (long long int i = 0; i < 451; i++) cout << ans1[i];
  cout << "\n";
  for (long long int i = 0; i < 451; i++) cout << ans2[i];
  return 0;
}
