#include #define rep(i,a,b) for(int i=a;i<(b);++i) #define erep(i,a,b) for(int i=a;i<=(int)(b);++i) #define per(i,a,b) for(int i=(a);i>(b);--i) #define eper(i,a,b) for(int i=(a);i>=b;--i) #define pb push_back #define mp make_pair #define INF (1<<30)-1 #define MOD 1000000007 #define all(x) (x).begin(),(x).end() #define vii vector #define vll vector using namespace std; typedef long long ll; typedef pair Pii; templatebool chmax(T &a, const T &b) { if (abool chmin(T &a, const T &b) { if (b char { const char charset[] = "abcdefghijklmnopqrstuvwxyz"; const size_t max_index = (sizeof(charset) - 1); return charset[rand() % max_index]; }; string str(length, 0); generate_n(str.begin(), length, randchar); return str; } int main() { cin.tie(0); ios::sync_with_stdio(false); cin >> n; string t = "a"; char begin = 'a', last = 'a'; if (n == 1) t += "n"; cout << t << endl; rep(i, 0, n-1) { t = random_string(i%18+2); if (last != t[0]) t[0] = last, begin = t[0]; if (i == n-2) t[t.size()-1] = 'n'; else last = t[t.size()-1]; cout << t << endl; } return 0; }