#include using namespace std; int main() { int N; cin >> N; set used; for (int i = 0; i < N; i++) { string s; cin >> s; used.insert(s); } string sabbat_of_the_witch = "inabameguru"; set boin({'a', 'i', 'u', 'e', 'o'}); do { bool flag = true, shiin = false; for (auto&& c : sabbat_of_the_witch) { if (boin.count(c)) { shiin = false; } else { if (shiin == true) flag = false; shiin = false; } } if (flag && boin.count(sabbat_of_the_witch.back()) && used.count(sabbat_of_the_witch) == 0) { cout << sabbat_of_the_witch << endl; return 0; } } while (next_permutation(sabbat_of_the_witch.begin(), sabbat_of_the_witch.end())); cout << "NO" << endl; }