#include <bits/stdc++.h>
using namespace std;
long long n;
string s;
long long c[101];
int32_t main() {
  cin >> n;
  for (long long i = 4; i <= 100; i++) {
    long long now = 1;
    for (long long j = 0; j < 4; j++) {
      now *= (i - j);
    }
    for (long long j = 0; j < 4; j++) {
      now /= (j + 1);
    }
    c[i] = now;
  }
  for (long long i = 0; i < 100; i++) {
    s += 'b';
  }
  while (n > 0) {
    long long go;
    for (long long i = 4; i <= 100; i++) {
      if (c[i] > n) break;
      go = i;
    }
    string s1;
    long long b = 0;
    bool flag = false;
    for (long long i = 0; i < s.size(); i++) {
      s1 += s[i];
      if (s[i] == 'b') b++;
      if (!flag && b == 100 - go) {
        s1 += 'a';
        flag = true;
      }
    }
    n -= c[go];
    s = s1;
  }
  cout << s << " "
       << "abbbb" << endl;
  return 0;
}
