#include <bits/stdc++.h>
using namespace std;
template <class X, class Y>
bool minimize(X &x, const Y &y) {
  X eps = 1e-9;
  if (x > y + eps) {
    x = y;
    return true;
  } else
    return false;
}
template <class X, class Y>
bool maximize(X &x, const Y &y) {
  X eps = 1e-9;
  if (x + eps < y) {
    x = y;
    return true;
  } else
    return false;
}
template <class T>
T Abs(const T &x) {
  return (x < 0 ? -x : x);
}
int main(void) {
  int length = 1000;
  for (int love = 0, _n = (length + 1); love < _n; love++) printf("3");
  printf("\n");
  for (int love = 0, _n = (length); love < _n; love++) printf("6");
  printf("7\n");
  return 0;
}
