#include <bits/stdc++.h>
using namespace std;
long long c[210][5], n;
vector<char> res;
int main(void) {
  c[0][0] = 1;
  for (int i = 1; i <= 200; i++) {
    c[i][0] = 1;
    for (int j = 1; j <= 5; j++) c[i][j] = c[i - 1][j] + c[i - 1][j - 1];
  }
  cin >> n;
  int r = 125;
  while (c[r][4] > n) r--;
  for (int i = r; i; i--) {
    while (n && n >= c[i][4]) {
      res.push_back('b');
      n -= c[i][4];
    }
    res.push_back('a');
  }
  for (int i = res.size() - 1; i >= 0; i--) putchar(res[i]);
  printf(" aaaab\n");
  return 0;
}
