s = int(input()) // 10; results = input() print(sum([1 for i in range(10) if sum([1 for r in results[s * i:s * (i + 1)] if r == 'T']) == s]))
1 2 3 | s = int(input()) // 10; results = input() print(sum([1 for i in range(10) if sum([1 for r in results[s * i:s * (i + 1)] if r == 'T']) == s])) |