//#define _GLIBCXX_DEBUG #include using namespace std; #define rep(i, l, n) for(int i = (int)(l); i < (int)(n); i++) #define ll long long #define ld long double #define all(x) (x).begin(), (x).end() #define rall(x) (x).rbegin(), (x).rend() template void chmin(T &a, T b) {if(a > b) a = b;} template void chmax(T &a, T b) {if(a < b) a = b;} template using spq = priority_queue, greater>; //bool -> Yes/No string answer(const bool b) { if(b) return "Yes"; else return "No"; } void fix(int k) {cout << fixed << setprecision(k);} template void out(T a) { cout << a << endl; } const int inf = 2e9; const ll INF = 2e18; const ld pi = 3.14159265358979323846264338; array dx = {0, 0, -1, 1}, dy = {-1, 1, 0, 0}; int main() { cin.tie(nullptr); ios::sync_with_stdio(false); int cnt = 0; int n, m; cin >> n >> m; while(n--) { string s; int rating; cin >> s >> rating; if(rating >= 1200) { if(s[0] == 'x' || s[1] == 'x' || s[2] == 'x' || s[3] == 'x') cnt++; } } cout << cnt << '\n'; }