#include <bits/stdc++.h>
using namespace std;
long long h, w;
bool flag = false;
int main() {
  int n;
  cin >> n;
  switch (n) {
    case 1:
      cout << "a" << endl;
      break;
    case 2:
      cout << "aa" << endl << "ab" << endl;
      break;
    case 3:
      cout << "aaa" << endl << "abc" << endl;
      break;
    case 4:
      cout << "aaaa" << endl << "abcd" << endl;
      break;
    case 5:
      cout << "aaaaa" << endl << "abcde" << endl;
      break;
    case 6:
      cout << "aaaaaa" << endl << "abcdef" << endl;
      break;
    case 7:
      cout << "aaaaaaa" << endl << "abcdefg" << endl;
      break;
    case 8:
      cout << "aaaaaaaa" << endl << "abcdefgh" << endl;
      break;
    case 9:
      cout << "aaaaaaaaa" << endl << "abcdefghi" << endl;
      break;
    case 10:
      cout << "aaaaaaaaaa" << endl << "abcdefghij" << endl;
      break;
  }
}
