1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include<bits/stdc++.h>
using namespace std;

int main()
{
	int n, i, j, wyn = 0, test = 1;
	char z;
	cin >> n;
	for(i = 0; i < 10; i++){
		test = 1;
		for(j = 0; j < n/10; j++) {
			cin >> z;
			if(z == 'N') test = 0;
		}
		wyn += test;
	}
	cout << wyn;



return 0;
}