#include <bits/stdc++.h>
using namespace std;
char str[200], ans[201];
int dp[200], ins[200];
int main() {
  int n;
  cin >> n;
  for (int i = 0; i < 120; i += 4) {
    str[i] = 'a';
    str[i + 1] = 'b';
    str[i + 2] = 'c';
    str[i + 3] = 'd';
    if (i) {
      dp[i] = dp[i - 4] + 1;
      dp[i + 1] = dp[i - 3] + dp[i];
      dp[i + 2] = dp[i - 2] + dp[i + 1];
      dp[i + 3] = dp[i + 2] + dp[i - 1];
    } else {
      dp[i] = dp[i + 1] = dp[i + 2] = dp[i + 3] = 1;
    }
  }
  for (int i = 119; n && i > -1; i -= 4) {
    if (dp[i] <= n) {
      ins[i] = n / dp[i];
      n %= dp[i];
    }
  }
  for (int i = 0, dif = 0; i < 200; i++) {
    ans[i + dif] = str[i];
    for (int j = 0; j < ins[i]; j++) ans[i + (++dif)] = 'e';
  }
  cout << ans << "\tabcde" << endl;
  return 0;
}
