#include <bits/stdc++.h>
using namespace std;
ifstream in("cf.in");
ofstream out("cf.out");
int cnt[1010];
int main(void) {
  ios::sync_with_stdio(false);
  cin.tie();
  cout.tie();
  int n;
  cin >> n;
  if (n == 0) {
    cout << "a b";
    return 0;
  }
  if (n == 1) {
    cout << "a a";
    return 0;
  }
  if (n == 2) {
    cout << "aa a";
    return 0;
  }
  if (n == 3) {
    cout << "aaa a";
    return 0;
  }
  if (n == 4) {
    cout << "aaaa a";
    return 0;
  }
  int k = 0, p = 1;
  while (p * 2 <= n) {
    ++k;
    p *= 2;
  }
  k -= 2;
  for (int i = 0; i < k; ++i) cout << (char)(i + 'a');
  if (n & 1) cout << (char)(k + 'a');
  for (int i = k - 1; i >= 0; --i) {
    for (int j = k - 1; j >= k - i - 1; --j) cout << (char)(j + 'a');
    if ((n >> (k - i)) & 1) cout << (char)(k + 'a');
  }
  if (((n >> k) >> 1) & 1) cout << (char)(k + 'a') << (char)(k + 'a');
  cout << (char)(k + 'a') << (char)(k + 'a');
  cout << (char)(k + 'a') << (char)(k + 'a') << " ";
  for (int i = 0; i <= k; ++i) cout << (char)(i + 'a');
  return 0;
}
