1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
//Patryk Górski LO XIV Wrocław
#include<iostream>
using namespace std;
int main(){
    int n,wyn = 0;
    bool a = 0;
    cin>>n;
    for(int i=0;i<n;i++){
        if(i%(n/10)==0){
            if(a) wyn++;
            a = 1;
        }
        char h;
        cin>>h;
        if(h=='N') a = 0;
    }
    if(a) wyn++;
    cout<<wyn<<"\n";
    return 0;
}