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
#include <bits/stdc++.h>

using namespace std;

#define MAX_POINTS  10

int main() {
    cin.tie(0);
    ios::sync_with_stdio(0);
    int nb_of_tests, points_earned = 0;
    cin >> nb_of_tests;
    int test_group_size = nb_of_tests / MAX_POINTS;
    for (int i = 0; i < MAX_POINTS; i++) {
        bool earned_point = true;
        for (int j = 0; j < test_group_size; j++) {
            char x;
            cin >> x;
            if (x == 'N') {
                earned_point = false;
            }
        }
        points_earned += earned_point;
    }
    cout << points_earned << endl;
    return 0;
}