#include #include using namespace std; #define rep(i,n) for(int i = 0; i >; ll fac[510000],finv[510000],inv[510000]; // 二項係数前 void comb_init(){ fac[0]=fac[1]=1; finv[0]=finv[1]=1; inv[1]=1; for(ll i=2;i<510000;i++){ fac[i]=fac[i-1]*i%MOD; inv[i]=MOD-inv[MOD%i]*(MOD/i)%MOD; finv[i]=finv[i-1]*inv[i]%MOD; } } ll comb(ll n,ll r){ if(n>N; ll ans=0; rep(i,N){ vectorS(4); cin>>S[0]>>S[1]>>S[2]>>S[3]; ll akai=1; ll marui=1; ll okii=1; ll umai=1; rep(i,4){ if(S[i]=="akai")akai--; if(S[i]=="marui")marui--; if(S[i]=="okii")okii--; if(S[i]=="umai")umai--; } if(akai==0&&marui==0&&okii==0&&umai==0)ans++; } cout<