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
27
#include <cstdio>
#include <cstdlib>
#include <iostream>
using namespace std;

int main () {
        int n;
        string seq;
        cin >> n;
        cin >> seq;

        int cnt = 0;
        for (int t = 0; t < 10; t++ ) {
                int gib = n/10;
                int ok = 1;

                for (int j = 0; j < gib; j++) {
                        if (seq[t*gib + j] == 'N')
                                ok = 0;
                }
                if (ok)
                        cnt++;

        }
        cout << cnt << endl;
        return 0;
}