#include <bits/stdc++.h>
using namespace std;
long long n;
char now;
string s, t;
inline void solve(int len) {
  if (len == 1) {
    s = "";
    t = "a";
    now = 'a';
    return;
  }
  if (len == 2) {
    s = "b";
    t = "ab";
    now = 'b';
    return;
  }
  if (len & 1) {
    solve(len / 2);
    now++;
    s = s + now + now;
    t = t + now;
    return;
  } else {
    solve(len / 2 - 1);
    now++;
    s = now + s + now + now;
    t = t + now;
    return;
  }
}
int main() {
  cin >> n;
  solve(n);
  cout << t << s << " " << t;
  return 0;
}
