#include #include //小数点出力用 //cout << fixed << setprecision(10) << ans; #include #include #include #include #include #include #include using ll = long long; using namespace std; #define modP 998244353 bool chkrng0idx(int pos, int sup) { return (0 <= pos && pos < sup); } int clk4(int num) { return (num - 2) * (num % 2); } void yn(bool tf) { cout << (tf ? "Yes\n" : "No\n"); } int main() { ios::sync_with_stdio(false); cin.tie(nullptr); int N, M;cin >> N >> M; int ans=0; for (int i = 0;i < N;i++) { string S;int R;cin >> S >> R; if (R < 1200)continue; bool ok = 1; for (int j = 0;j < 4;j++) { if (S[j] == 'x')ok = 0; } if (!ok)ans++; } cout << ans; return 0; }