#include #include void main(void){ const char goodComment[4][100] = {"akai","marui","okii","umai"}; int n = 0; scanf("%d",&n); char comment[100] = "a"; int amaouCount = 0; for(int i = 0 ; i < n ; i++){ int commentCount[4] = {0,0,0,0}; for(int j = 0 ; j < 4 ; j++){ scanf("%s",comment); if(strcmp(comment,goodComment[0]) == 0){ commentCount[0]++; }else if(strcmp(comment,goodComment[1]) == 0){ commentCount[1]++; }else if(strcmp(comment,goodComment[2]) == 0){ commentCount[2]++; }else if(strcmp(comment,goodComment[3]) == 0){ commentCount[3]++; } } for(int i = 0 ; i < 4;i++){ if(commentCount[i] != 1){ break; } if(i == 3){ amaouCount++; } } } printf("%d",amaouCount); }