#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<int, int>;
int main() {
  int n;
  cin >> n;
  if (n == 1) cout << "a" << endl;
  if (n == 2) cout << "aa" << endl << "ab" << endl;
  if (n == 3)
    cout << "aaa" << endl
         << "aab" << endl
         << "aba" << endl
         << "abb" << endl
         << "abc" << endl;
  if (n == 4) {
    cout << "aaaa" << endl;
    cout << "aaab" << endl;
    cout << "aaba" << endl;
    cout << "aabb" << endl;
    cout << "aabc" << endl;
    cout << "abaa" << endl;
    cout << "abab" << endl;
    cout << "abba" << endl;
    cout << "abbb" << endl;
    cout << "abbc" << endl;
    cout << "abca" << endl;
    cout << "abcb" << endl;
    cout << "abcc" << endl;
    cout << "abcd" << endl;
  }
  if (n == 5) {
    cout << "aaaaa" << endl;
    cout << "aaaab" << endl;
    cout << "aaaba" << endl;
    cout << "aaabb" << endl;
    cout << "aaabc" << endl;
    cout << "aabaa" << endl;
    cout << "aabab" << endl;
    cout << "aabba" << endl;
    cout << "aabbb" << endl;
    cout << "aabbc" << endl;
    cout << "aabca" << endl;
    cout << "aabcb" << endl;
    cout << "aabcc" << endl;
    cout << "aabcd" << endl;
    cout << "abaaa" << endl;
    cout << "abaab" << endl;
    cout << "ababa" << endl;
    cout << "ababb" << endl;
    cout << "ababc" << endl;
    cout << "abbaa" << endl;
    cout << "abbab" << endl;
    cout << "abbba" << endl;
    cout << "abbbb" << endl;
    cout << "abbbc" << endl;
    cout << "abbca" << endl;
    cout << "abbcb" << endl;
    cout << "abbcc" << endl;
    cout << "abbcd" << endl;
    cout << "abcaa" << endl;
    cout << "abcab" << endl;
    cout << "abcac" << endl;
    cout << "abcad" << endl;
    cout << "abcba" << endl;
    cout << "abcbb" << endl;
    cout << "abcbc" << endl;
    cout << "abcbd" << endl;
    cout << "abcca" << endl;
    cout << "abccb" << endl;
    cout << "abccc" << endl;
    cout << "abccd" << endl;
    cout << "abcda" << endl;
    cout << "abcdb" << endl;
    cout << "abcdc" << endl;
    cout << "abcdd" << endl;
    cout << "abcde" << endl;
  }
  if (n == 6) cout << -1 << endl;
  if (n == 7) cout << -1 << endl;
  if (n == 8) cout << -1 << endl;
  if (n == 9) cout << -1 << endl;
  if (n == 10) cout << -1 << endl;
  return 0;
}
