1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#include <iostream>
using namespace std;
int main()
{
    int w =0;
    int n;
    string s;
    cin >> n >> s;
    n /= 10;
    for (int i = 0; i < n * 10;i += n)
    {
        bool czy = true;
        for (int j = 0; j < n; j++)
        {
            if (s[i + j] == 'N')
                czy = false;
        }
        if (czy)
            w++;
   
    }
    cout << w;
    return 0;
}