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
#include <bits/stdc++.h>
using namespace std;
#pragma GCC maksuje_zadania_na_essie("pot200");

bool group_failed[10];

int main() {

    cin.tie(0)->sync_with_stdio(false);
    int n; cin >> n;
	int k = n/10;

	for(int i = 0; i < n; i++) {
		char a; cin >> a;
		if(a == 'N') group_failed[i/k] = true;
	}

	int res = 0;

	for(int i = 0; i < 10; i++)
		if(!group_failed[i]) res++;

	cout << res << '\n';

}