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
32
33
34
35
36
37
38
39
40
41
42
43
44
#include <bits/stdc++.h>
#include <queue>
using namespace std;

int n;
string s;


void read() {
    cin>>n;
    cin>>s;
}

int ile_punktow() {
    int k = n/10;
    int ile = 0;
    int m = 0;
    for(int i =0;i<10;i++) {
        bool ok = true;
        for(int j = 0; j<k;j++) {
            if(s[m]=='N'){
                ok = false;
            }
            m++;
        }
        if(ok){
            ile++;
        }

    }
    return ile;
}

void solve() {

    read();
    cout<<ile_punktow()<<"\n";
}

int main() {
    ios_base::sync_with_stdio(false);
    solve();
    return 0;
}