#include <bits/stdc++.h>
using namespace std;
using ll = long long;
ll comb(ll n, ll k) {
  ll res = 1;
  for (int i = 0; i < k; i++) {
    res *= (n - i);
  }
  for (int i = 1; i <= k; i++) {
    res /= i;
  }
  return res;
}
int main() {
  ll n;
  cin >> n;
  string res;
  for (int i = 30; i >= 0; i--) {
    ll a = n / comb(i + 5, 5);
    n -= a * comb(i + 5, 5);
    for (int j = 0; j < a; j++) res += "a";
    res += "bcdef";
  }
  assert(res.size() <= 200);
  cout << res << " "
       << "abcdef" << endl;
  return 0;
}
