1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
#include <cstdio>

int n;
char s[150];

int main() {
	scanf("%d%s", &n, s);
	int ans = 0;
	for (int start = 0; start < n; start += n / 10) {
		bool ok = 1;
		for (int j = start; j < start + n / 10; ++j) if (s[j] == 'N') ok = 0;
		ans += ok;
	}
	printf("%d\n", ans);
	return 0;
}