#include <bits/stdc++.h>
using namespace std;
int n;
char now;
string s1, s2;
void solve(int l) {
  if (l == 1) {
    s1 = "";
    s2 = "a";
    now = 'a';
    return;
  }
  if (l == 2) {
    s1 = "b";
    s2 = "ab";
    now = 'b';
    return;
  }
  if (l % 2 == 0) {
    solve(l / 2 - 1);
    now++;
    s1 = now + s1 + now + now;
    s2 = s2 + now;
    return;
  }
  if (l % 2 == 1) {
    solve(l / 2);
    now++;
    s1 = s1 + now + now;
    s2 = s2 + now;
    return;
  }
}
int main() {
  scanf("%d", &n);
  solve(n);
  cout << s2 << s1 << " " << s2;
  return 0;
}
