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 <iostream>

int main() {
  int N;
  std::cin >> N;

  int sum = 0;

  for (int i = 0; i < 10; ++i) {
    bool result = true;
    for (int j = 0; j < N/10; ++j) {
      char c;
      std::cin >> c;
      if (c == 'N') {
        result = false;
      }
    }
    if (result) {
      sum++;
    }
  }

  std::cout << sum << std::endl;
  return 0;
}