#include <bits/stdc++.h>
using namespace std;
char aux[] = "qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM";
int n, p;
int main() {
  cin >> n;
  if (n == 1) {
    cout << "a a";
    return 0;
  }
  --n;
  while (n) {
    if (n % 2 == 1) {
      cout << aux[p];
      ++p, --n;
    } else {
      cout << aux[p] << aux[p];
      ++p;
      n = n / 2 - 1;
    }
  }
  for (int i = 0; i <= p; ++i) {
    cout << aux[i];
  }
  cout << " ";
  for (int i = 0; i <= p; ++i) {
    cout << aux[i];
  }
  return 0;
}
