#include <bits/stdc++.h>
using namespace std;
const int N = 1e6 + 100;
int MAX;
void solve(int n) {
  string res;
  for (int i = 72; i >= 1; i--) {
    int each = i * (i - 1) * (i - 2) * (i - 3) / 24;
    if (each) {
      int c = n / each;
      n %= each;
      while (c--) {
        res.insert(res.begin(), 'B');
      }
    }
    res.insert(res.begin(), 'A');
  }
  string T = "AAAAB";
  MAX = max(MAX, (int)res.size());
  assert(res.size() <= 200);
  cout << res << " " << T << endl;
}
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  int n;
  cin >> n;
  solve(n);
  return 0;
}
