n = int(input()) s = input() t = int(n / 10) x = ''.join(['T']*t) print(sum((int(s[i*t: (i+1)*t] == x) for i in range(10))))
1 2 3 4 5 6 | n = int(input()) s = input() t = int(n / 10) x = ''.join(['T']*t) print(sum((int(s[i*t: (i+1)*t] == x) for i in range(10)))) |