1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#include <iostream>

using namespace std;

int main() {
    int n;
    int pkt = 0;
    int testy = 0;
    string in = "";
    cin >> n >> in;
    for(int i = 1; i<=n; i++){
        if(in[i-1] == 'T'){
            testy++;
        }
        if(i%(n/10) == 0){
            if(testy == n/10){
                pkt++;
            }
            testy = 0;
        }
    }
    cout << pkt;
    return 0;
}