#include using namespace std; typedef long long int ll; #define FOR(i, a, n) for (ll i = (ll)a; i < (ll)n; i++) #define rep(i, n) FOR(i, 0, n) int main() { cin.tie(0); ios::sync_with_stdio(false); int n; cin >> n; string s = "abcdefghijklmnopq"; int count = 0; do{ count++; cout << "a" << s; if (count < n) cout << "a" << endl; else { cout << "n" << endl; break; } } while(next_permutation(s.begin(), s.end())); return 0; }