#include <bits/stdc++.h>
using namespace std;
string p = "a", u = "";
char now = 'a';
inline void sol(int x) {
  if (x == 1) return;
  if (x == 2) {
    u = "a";
    return;
  }
  if (x & 1) {
    sol((x - 1) >> 1);
    ++now;
    u = u + now + now;
    p = p + now;
  } else {
    sol((x - 2) >> 1);
    ++now;
    u = now + u + now + now;
    p = p + now;
  }
}
int n;
int main() {
  scanf("%d", &n);
  sol(n);
  u = p + u;
  cout << u << " " << p;
  return 0;
}
