#include #include using namespace std; using namespace atcoder; #define all(x) (x).begin(), (x).end() #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define rrep(i, n) for(int i = (int)(n - 1); i >= 0; i--) template bool chmax(T &a,const T &b){if(a bool chmin(T &a,const T &b){if(a>b){a=b;return true;}return false;} using ll = long long; #define int ll using vi = vector; using vvi = vector>; using vb = vector; using vvb = vector>; using vs = vector; using pii = pair; /* using mint = modint; using vm = vector; using vvm = vector>; */ signed main(){ int n, m; cin >> n >> m; int ans = 0; while(n--){ string s; int r; cin >> s >> r; bool ok = true; rep(i, 4) ok &= s.at(i) == 'o'; if(!ok && r >= 1200) ans++; } cout << ans << endl; }