N = int(input()) S = input() result = 0 diff = N // 10 for i in range(10): tests = S[i * diff : (i + 1) * diff] result += int(set(tests) == set("T")) print(result)
1 2 3 4 5 6 7 8 9 10 | N = int(input()) S = input() result = 0 diff = N // 10 for i in range(10): tests = S[i * diff : (i + 1) * diff] result += int(set(tests) == set("T")) print(result) |