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
28
29
30
31
#include <bits/stdc++.h>

using namespace std;


int main(int argc, char const *argv[])
{
    ios_base::sync_with_stdio(0);

    int N;
    string Test;

    cin>>N;
    cin>>Test;

    int points = 0;
    for(int t=0; t < 10; ++t)
    {
        bool good = true;
        for(int j=0; j < N/10; ++j)
            if (Test[j+t*N/10] == 'N')
            {
                good = false;
                break;
            }
        if (good)
            points++;
    }
    cout<<points<<"\n";
    return 0;
}