#include <bits/stdc++.h>
using namespace std;
void ga(int N, int *A) {
  for (int i(0); i < N; i++) scanf("%d", A + i);
}
int C[(1000002)], N;
vector<int> v;
bool rec(int u) {
  if (u >= N) return u == N;
  if (C[u]++) return 0;
  for (int k(1); k < 5; k++)
    if (rec(u * 2 + k)) return v.push_back(k), 1;
  return 0;
}
char c = 98;
string s, p = "a";
int main(void) {
  scanf("%d", &N);
  if (N == 2) return puts("aax ax");
  assert(rec(1));
  while (!v.empty()) {
    p += string(1, c);
    for (int i(0); i < v.back() - 1; i++) s = string(1, c) + s;
    for (int i(0); i < 2; i++) s += string(1, c);
    ++c, v.pop_back();
  }
  cout << p << s << " " << p << endl;
  return 0;
}
