#include #include #include void main(void){ const char eto[12][10] = {"ne","ushi","tora","u","tatsu","mi","uma","hitsuji","saru","tori","inu","i"}; int etoList[12] = {0,0,0,0,0,0,0,0,0,0,0,0,0}; char str[100] = "a"; int n = 0; scanf("%d",&n); for(int i = 0 ; i < n ;i++){ scanf("%s",str); for(int j = 0 ; j < 12 ; j++){ if(strcmp(eto[j],str) == 0){ etoList[j]++; break; } } } bool orderFlg = true; for(int i = 0 ; i < 12 ;i++){ if(n/2+1 < etoList[i]){ orderFlg = false; } } if(orderFlg){ printf("YES"); }else{ printf("NO"); } }