#include <bits/stdc++.h>
const int N = 80;
int cnt[N];
int main() {
  int n;
  scanf("%d", &n);
  int k = N;
  while (n) {
    while (k * (k - 1) * (k - 2) * (k - 3) / 24 > n) k--;
    n -= k * (k - 1) * (k - 2) * (k - 3) / 24;
    cnt[k]++;
  }
  for (int i = 1; i < N; i++) {
    printf("a");
    while (cnt[i]--) printf("b");
  }
  puts(" aaaab");
  return 0;
}
