using System; class A { static int[]B = new int[12]; static void Main() { string[] eto = { "ne", "ushi", "tora", "u", "tatsu", "mi", "hitsuji", "uma", "saru", "tori", "inu", "i" }; int N = int.Parse(Console.ReadLine()); // int[] B = new int[12]; string[] A = new string[N]; for(int i = 0; i < N; i++) { A[i] = Console.ReadLine(); } for(int i = 0; i < 12; i++) { int c = 0; for(int j = 0; j < N; j++) { if (A[j] == eto[i]) { c++; } } B[i] = c; } bool s = false; for(int i = 0; i < 12; i++) { if ((N + 1) / 2 < B[i]) { s = true; } } if (s) { Console.WriteLine("NO"); } else { Console.WriteLine("YES"); } } }