#include <bits/stdc++.h>
using namespace std;
pair<string, string> Solve(int n) {
  if (n == 1) return pair<string, string>("a", "a");
  if (n == 2) return pair<string, string>("abb", "ab");
  if (n % 2 == 0) {
    pair<string, string> a = Solve(n / 2 - 1);
    char c = char(a.second[(int)a.second.size() - 1] + 1);
    a.first.insert((int)a.second.size(), string(2, c));
    a.first += string(2, c);
    a.second += c;
    return a;
  } else {
    pair<string, string> a = Solve(n / 2);
    char c = char(a.second[(int)a.second.size() - 1] + 1);
    a.first.insert((int)a.second.size(), string(1, c));
    a.first += string(2, c);
    a.second += c;
    return a;
  }
}
int main() {
  int n;
  cin >> n;
  pair<string, string> ans = Solve(n);
  cout << ans.first << " " << ans.second;
  return 0;
}
