#ifndef ONLINE_JUDGE #define _GLIBCXX_DEBUG // []で配列外参照をするとエラーにしてくれる。上下のやつがないとTLEになるので注意 #endif #include using namespace std; // #include // using namespace atcoder; // #include // using namespace boost::multiprecision; using ll = long long; using Graph = vector>; ll INF = 2e18 + 1; int main(){ ios::sync_with_stdio(false); cin.tie(nullptr); int ans =0,n, m; cin >> n >> m; for (int i = 0; i < n; i++){ string s; int r; cin >> s >> r; if((s[0] =='x'||s[1] =='x'||s[2] =='x'||s[3] =='x') && r>=1200) ans++; } cout << ans << endl; }