#include <bits/stdc++.h>
using namespace std;
const int MOD = 1000000007;
int main() {
  for (int i = 0; i < (1000); ++i) printf("5");
  printf(" ");
  for (int i = 0; i < (999); ++i) printf("4");
  printf("5\n");
}
