#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int n;
  cin >> n;
  if (n == 1) {
    cout << 'a' << endl;
  } else {
    for (long long int i = 0; i < n; ++i) {
      cout << 'a';
    }
    cout << endl;
    if (n == 2) {
      cout << "ab" << endl;
    } else if (n == 3) {
      cout << "abc" << endl;
    } else if (n == 4) {
      cout << "abcd" << endl;
    } else if (n == 5) {
      cout << "abcde" << endl;
    } else if (n == 6) {
      cout << "abcdef" << endl;
    } else if (n == 7) {
      cout << "abcdefg" << endl;
    } else if (n == 8) {
      cout << "abcdefgh" << endl;
    } else if (n == 9) {
      cout << "abcdefghi" << endl;
    } else if (n == 10) {
      cout << "abcdefghij" << endl;
    }
  }
}
