#include <bits/stdc++.h>
using namespace std;
int c[210][210], t[210], a[210];
int main() {
  cin.tie(0);
  ios_base::sync_with_stdio(false);
  for (int i = 1; i < 210; i++) c[i][0] = c[i][i] = 1;
  for (int i = 1; i < 210; i++)
    for (int j = 1; j < i; j++) c[i][j] = c[i - 1][j - 1] + c[i - 1][j];
  for (int i = 0; i < 30; i++) t[i] = c[i + 5][5];
  int n;
  cin >> n;
  while (n) {
    int tmp = upper_bound(t, t + 30, n) - t - 1;
    n -= t[tmp];
    a[tmp]++;
  }
  int f = 1;
  for (int i = 29; i >= 0; i--) {
    if (f && a[i] == 0) continue;
    f = 0;
    for (int j = 0; j < a[i]; j++) cout << 'a';
    cout << "bcdef";
  }
  cout << " abcdef";
  return 0;
}
