#include <bits/stdc++.h>
using namespace std;
string ans1, ans2;
string get(string s, int n) {
  if (n == 0) return "";
  ans2 += s;
  string tmp;
  if (n == 1) return tmp + s;
  if (n == 2) return tmp + s + s;
  tmp += s + s;
  string ss = s;
  ss[0]++;
  tmp += get(ss, (n >> 1) - 1);
  if (n & 1) tmp += s;
  return tmp;
}
int main() {
  int n;
  scanf("%d", &n);
  if (n == 1)
    printf("a\na\n");
  else {
    ans1 = get("a", n - 1);
    ans1 += ans2;
    printf("%s\n%s\n", ans1.c_str(), ans2.c_str());
  }
  return 0;
}
