#include <bits/stdc++.h>
using namespace std;
const int MOD = 998244353;
const int N = 3e5 + 2;
void solve() {
  int n, m;
  cin >> n >> m;
  string s, b;
  for (int i = 1; i <= 200; i++) {
    s += '9';
  }
  for (int i = 1; i <= 199; i++) {
    s += '0';
  }
  s += '1';
  for (int i = 1; i <= 200; i++) {
    b += '9';
  }
  cout << s << "\n" << b << endl;
}
signed main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  int t;
  t = 1;
  while (t--) {
    solve();
  }
}
