module main; // https://yukicoder.me/problems/no/233/editorial より // 全探索 import std; void main() { // 入力 int N = readln.chomp.to!int; auto S = redBlackTree!string(); foreach (_; 0 .. N) S.insert(readln.chomp); // 答えの計算と出力 auto consonant = ["", "n", "b", "m", "g", "r"].sort; auto vowel = ["i", "a", "a", "e", "u", "u"].sort; do { do { string name; foreach (c, v; lockstep(consonant, vowel)) { name ~= c ~ v; } if (name !in S) { writeln(name); return; } } while (nextPermutation(vowel)); } while (nextPermutation(consonant)); writeln("NO"); }