using System; using System.Linq; using System.Collections.Generic; namespace program{ class program{ static void Main(string[] args){ var eto = new string[12] {"ne","ushi","tra","u","tatsu","mi","uma","hitsuji","saru","tori","inu","i"}; var cnt = new int[12]; int n = int.Parse(Console.ReadLine()); for( int i = 0; i < n; i++){ string str = Console.ReadLine(); for( int j = 0; j < 12; j++){ if( eto[j] == str ){ cnt[j]++; } } } if( cnt.Max() <= (n+1) / 2 ){ Console.WriteLine("YES"); } else{ Console.WriteLine("NO"); } } } }