#include <bits/stdc++.h>
using namespace std;
const int N = 4e5 + 5;
int n;
int main() {
  ios_base::sync_with_stdio(0);
  ;
  cin >> n;
  vector<int> v;
  if (n == 1) {
    cout << "a a\n";
    return 0;
  }
  while (n > 2) {
    if (n & 1) {
      v.push_back(1);
    } else {
      v.push_back(2);
      n -= 2;
    }
    n >>= 1;
  }
  reverse(v.begin(), v.end());
  string s = "", p = "", t = "";
  char q = 'a';
  if (n == 2) {
    p = "a";
    t = "a";
    q++;
  }
  int len = v.size();
  for (int i = 0; i < len; i++) {
    if (v[i] == 1) {
      p += q;
      s += q;
      s += q;
      q++;
    } else {
      p += q;
      t = q + t;
      s += q;
      s += q;
      q++;
    }
  }
  cout << p + t + s << " " << p << endl;
}
