#include #include using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); int N,M; cin>>N>>M; int cnt=0; for(;N--;) { string s;int r;cin>>s>>r; if(r>=1200) { bool fn=false; for(int j=0;j<4;j++)if(s[j]=='x')fn=true; cnt+=fn; } } cout<