1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
#include <bits/stdc++.h>


int8_t n, r;


int main()
{
    scanf("%" SCNd8 " ", &n);
    n /= 10;

    for (int8_t i = 1; i <= 10; ++i) {
        bool ok = true;
        for (int8_t j = 1; j <= n; ++j)
            if (getchar_unlocked() == 'N') ok = false;
        if (ok) ++r;
    }

    printf("%" PRId8 "\n", r);
}