#include <bits/stdc++.h>
using namespace std;
using LL = long long;
using PII = pair<int, int>;
string gen(int n) {
  if (n == 1) return "A";
  string t;
  if (n & 1) {
    int m = n / 2;
    string s = gen(m);
    char c = *max_element(s.begin(), s.end());
    int pos;
    if (islower(c))
      pos = 26 + c - 'a' + 1;
    else
      pos = c - 'A' + 1;
    char cc = c == 'Z' ? 'a' : c + 1;
    t = s.substr(0, pos) + string(1, cc) + s.substr(pos) + string(2, cc);
  } else {
    int m = n - 1;
    string s = gen(m);
    char c = *max_element(s.begin(), s.end());
    int pos;
    if (islower(c))
      pos = 26 + c - 'a' + 1;
    else
      pos = c - 'A' + 1;
    char cc = c == 'Z' ? 'a' : c + 1;
    t = s.substr(0, pos) + string(1, cc) + s.substr(pos) + string(1, cc);
  }
  return t;
}
int main() {
  int n;
  cin >> n;
  string s = gen(n);
  char c = *max_element(s.begin(), s.end());
  string t;
  for (char cc = 'A'; cc <= 'Z' && cc <= c; cc++) t.push_back(cc);
  for (char cc = 'a'; cc <= c; cc++) t.push_back(cc);
  cout << s << ' ' << t << endl;
}
