#include <bits/stdc++.h>
long long int mod = 1000000000 + 7;
long long int inf = (long long int)(1e18);
using namespace std;
mt19937 unlucko(chrono::steady_clock::now().time_since_epoch().count());
int main() {
  iostream::sync_with_stdio(false);
  cin.tie(0);
  int n, m;
  cin >> n >> m;
  for (int i = 0; i < 2229; i++) cout << 3;
  cout << "4\n";
  for (int i = 0; i < 2230; i++) cout << 6;
}
