#include <bits/stdc++.h>

using namespace std;

namespace {

    typedef double real;
    typedef long long ll;

    template<class T> ostream& operator<<(ostream& os, const vector<T>& vs) {
        if (vs.empty()) return os << "[]";
        os << "[" << vs[0];
        for (int i = 1; i < vs.size(); i++) os << " " << vs[i];
        return os << "]";
    }

    int N;
    vector<string> ss;
    void input() {
        cin >> N;
        ss.clear(); ss.resize(N);
        for (int i = 0; i < N; i++) cin >> ss[i];
    }

    void solve() {
        set<string> M;
        for (int i = 0; i < N; i++) M.insert(ss[i]);
        string vs = "aaeiuu";
        string cs = "bgmnr";
        do {
            do {
                for (int p = 0; p < 6; p++) {
                    string s = "                 ";
                    for (int i = 0; i < p; i++) {
                        s[i * 2] = cs[i];
                    }
                    for (int i = p + 1; i < 6; i++) {
                        s[i * 2] = cs[i - 1];
                    }
                    for (int i = 0; i <= 5; i++) {
                        s[i * 2 + 1] = vs[i];
                    }
                    string t;
                    for (int i = 0; i < s.size(); i++) {
                        char c = s[i];
                        if (c == ' ') continue;
                        t.push_back(c);
                    }
                    string x = t;
                    string y = "inabameguru";
                    sort(x.begin(), x.end());
                    sort(y.begin(), y.end());
                    assert(x == y);
                    if (not M.count(t)) {
                        cout << t << endl;
                        return;
                    }
                }
            } while (next_permutation(cs.begin(), cs.end()));
        } while (next_permutation(vs.begin(), vs.end()));
        cout << "NO" << endl;
    }
}

int main() {
    input(); solve();
    return 0;
}