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