#include <bits/stdc++.h>
using namespace std;
template <class T1, class T2>
istream &operator>>(istream &is, pair<T1, T2> &p) {
  return is >> p.first >> p.second;
}
template <class T1, class T2>
ostream &operator<<(ostream &os, pair<T1, T2> &p) {
  return os << p.first << " " << p.second;
}
pair<string, string> solve(int n, char c) {
  if (!n) return {string(), string()};
  if (n == 1) return {string() + c, string()};
  if (n == 2) return {string() + c, string() + c};
  pair<string, string> t = solve((n - 1) / 2, c - 1);
  t.first += c;
  t.second += c;
  t.second += c;
  if (n & 1) return t;
  return {t.first, c + t.second};
}
signed main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int n;
  cin >> n;
  pair<string, string> res = solve(n, 'z');
  cout << res.first << res.second << " " << res.first;
}
