#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using vi = vector<int>;
using db = double;
int n;
const int N = 18;
int main() {
  cin >> n;
  string s, p;
  for (int i = 0; i < N; ++i) p.push_back('a' + i);
  s = p;
  for (int i = 2; i <= N; ++i)
    for (int j = N - i; j < N; ++j) s.push_back('a' + j);
  while (s.size() < 200) s.push_back('a' + N - 1);
  int t = -1;
  for (auto i : s)
    if (i == 'a' + N - 2) ++t;
  reverse(s.begin(), s.end());
  for (auto &i : s) {
    if (i == 'a' + N - 2) --t;
    if (i == 'a' + N - 1)
      if (n >= 1 << t) {
        n -= 1 << t;
      } else {
        i = 0;
      }
  }
  reverse(s.begin(), s.end());
  for (auto i : s)
    if (i) cout << i;
  cout << ' ' << p << endl;
  return 0;
}
