#include <bits/stdc++.h>
using namespace std;
long long int div_floor(const long long int &a, const long long int &b) {
  return a / b - (((a ^ b) < 0) and a % b);
}
long long int div_ceil(const long long int &a, const long long int &b) {
  return a / b + (((a ^ b) >= 0) and a % b);
}
string c = "b";
pair<string, string> sp(int n) {
  if (n == 1) {
    pair<string, string> ans = {"a", ""};
    return ans;
  } else if (n == 2) {
    pair<string, string> ans = {"ab", "b"};
    c = "c";
    return ans;
  } else if (n % 2) {
    pair<string, string> ans = sp(n / 2);
    ans.first += c;
    ans.second = ans.second + c + c;
    c[0]++;
    return ans;
  } else {
    pair<string, string> ans = sp(n / 2 - 1);
    ans.first += c;
    ans.second = c + ans.second + c + c;
    c[0]++;
    return ans;
  }
}
void solve() {
  int n;
  cin >> n;
  auto output = sp(n);
  cout << output.first + output.second << " " << output.first << '\n';
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  int t = 1;
  while (t--) solve();
}
