1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
#include <stdio.h>

int main(void)
{
	int n, i, j, p = 0;

	scanf("%d\n", &n);
	n /= 10;
	for (j = 0; j < 10; j++) {
		int pi = 1;

		for (i = 0; i < n; i++)
			if (getchar() != 'T')
				pi = 0;

		p += pi;
	}

	printf("%d\n", p);
	return 0;
}