n=int(input())//10 s=input() print(sum([s[i:i+n]=='T'*n for i in range(0,10*n,n)]))
1 2 3 | n=int(input())//10 s=input() print(sum([s[i:i+n]=='T'*n for i in range(0,10*n,n)])) |
n=int(input())//10 s=input() print(sum([s[i:i+n]=='T'*n for i in range(0,10*n,n)]))
1 2 3 | n=int(input())//10 s=input() print(sum([s[i:i+n]=='T'*n for i in range(0,10*n,n)])) |