#include <bits/stdc++.h>
using namespace std;
long long ar[10005], br[20006];
long long m, n, i, j, k, l, p, q, r, s, t, ck = 0, cnt = 0;
int main() {
  char c;
  cin >> n;
  for (i = 0; i < n; i++) {
    cout << "a";
  }
  cout << endl;
  for (i = 0; i < n; i++) {
    c = 97 + i;
    cout << c;
  }
  cout << endl;
  return 0;
}
