#include <bits/stdc++.h>
using namespace std;
const int mod = 7 + 1e9;
const int inf = 1e9;
const int N = 0;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  for (int i = 0; i < (2000); i++) cout << '7';
  cout << "\n";
  for (int i = 0; i < (2000 - 1); i++) cout << '2';
  cout << '3' << "\n";
}
