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

string s;
int n, res, licz;

int main(){
	cin >> n >> s;
	for(int i = 0 ; i < n ; i++){
		if(!(i % (n / 10))) licz = 0;
		if(s[i] == 'T') licz++;
		if(licz == n / 10) res++;
	}
	cout << res << endl;
}