1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
#include <cstdio>

int main() {
    int n, p = 0;
    scanf("%d\n", &n);
    n /= 10;
    for (int i = 1; i <= 10; i++) {
        bool passed = true;
        for (int j = 0; j < n; j++) {
            if (getchar() == 'N') passed = false;
        }
        p += passed;
    }
    printf("%d\n", p);
}