1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#include <iostream>
#include <string>

using namespace std;

char tab[15][15];


int main()
{
    ios_base::sync_with_stdio(false);
    cin.tie(0);
    int n, suma = 0;
    bool a;
    cin >> n;
    for (int i = 0; i < 10; i++) {
        a = 0;
        for (int j = 0; j < n / 10; j++) {
            cin >> tab[i][j];
            if (tab[i][j] == 'N')a = 1;
        }
        if (a == 0)suma++;
    }
    cout << suma;
    return 0;
}