#include <bits/stdc++.h>
const int inf = (1ll << 30) - 1;
const int maxn = (int)1e5 + 10;
using namespace std;
void solve() {
  string second, t;
  for (int i = 1; i < 2000; i++) {
    second += "5";
    t += "4";
  }
  second += "5";
  t += "5";
  cout << second << "\n" << t << "\n";
}
int main() {
  int t = 1;
  for (int i = 1; i <= t; i++) {
    solve();
  }
  return 0;
}
