a = int (input()) b = input() score = 0 for x in range(10): c = 0 for y in range(a//10): if b[a//10*x+y] == "T": c+=1 if c == a//10: score +=1 print(score)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | a = int (input()) b = input() score = 0 for x in range(10): c = 0 for y in range(a//10): if b[a//10*x+y] == "T": c+=1 if c == a//10: score +=1 print(score) |