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

int main(){
    int n;
    scanf("%d \n",&n);
    int n10 = n/10;
    int wynik = 0;
    for (int i = 0; i < 10;i++){
        int nie = 0;
        for (int j = 0; j < n10;j++){
            char temp;
            scanf("%c",&temp);
            if (temp == 'N')nie = 1;
        }
        if (nie ==0)wynik++;
    }
    cout << wynik;
}