#include using namespace std; int main(){ int n;cin>>n; int ans=0; for(int i=0;is={"akai","okii","marui","umai"}; for(int j=0;j<4;j++){ string t;cin>>t; s.erase(t); } if(s.empty())ans++; } cout<