#include <bits/stdc++.h>
using namespace std;
string s1, s2, a = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
int n, cnt;
int main() {
  cin >> n;
  while (--n) {
    if (n % 2) {
      s1 = s1 + a[cnt];
      ++cnt;
    } else {
      s1 = s1 + a[cnt] + a[cnt];
      ++cnt;
      n /= 2;
    }
  }
  for (int i = 0; i <= cnt; ++i) s2 += a[i];
  cout << s1 + s2 << ' ' << s2;
}
