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
#include <algorithm>
#include <cstdio>
#include <vector>
#include <set>

using namespace std;

int main()
{
	long n, l=0;
	char c;
	scanf("%ld\n", &n);
	long d = n / 10;
	while (n > 0)
	{
		bool b = true;
		for (long i = 0; i < d; ++i)
		{
			--n;
			scanf("%c", &c);
			if (c == 'N')
				b = false;
		}
		if (b)
			++l;
	}

	printf("%ld", l);
	return 0;
}