#include <bits/stdc++.h>
using namespace std;
int n, m = 3, l, c[20000];
char s[500];
int main() {
  cin >> n;
  while (c[m] <= n) m++, c[m] = (long long)m * (m - 1) * (m - 2) * (m - 3) / 24;
  for (int i = m - 1; i >= 1; i--) {
    while (c[i] >= 1 && n >= c[i]) {
      s[++l] = 'a';
      n -= c[i];
    }
    s[++l] = 'b';
  }
  printf("%s abbbb\n", s + 1);
  return 0;
}
