import java.util.*; public class Main { static char[] base = "inabameguru".toCharArray(); static HashSet exist = new HashSet<>(); public static void main (String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); for (int i = 0; i < n; i++) { exist.add(sc.next()); } make(new char[base.length], 0, 0, 0, 0); System.out.println("NO"); } static void make(char[] arr, int idx, int mask, int bCount, int sCount) { if (bCount - sCount > 1) { return; } if (idx >= arr.length) { if (!isBoin(arr[arr.length - 1])) { return; } String s = new String(arr); if (!exist.contains(s)) { System.out.println(s); System.exit(0); } } for (int i = 0; i < base.length; i++) { if ((mask & (1 << i)) != 0) { continue; } if (i > 0 && !isBoin(arr[idx - 1]) && !isBoin(base[i])) { continue; } arr[idx] = base[i]; int bNext = 0; int sNext = 0; if (isBoin(base[i])) { bNext++; } else { sNext++; } make(arr, idx + 1, mask ^ (1 << i), bCount + bNext, sCount + sNext); } } static boolean isBoin(char c) { return c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o'; } }