1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
N = int(input())
S = input()
ans, cur_group = 0, False

for (i, b) in enumerate(S):
    if i % (N // 10) == 0:
        ans += cur_group
        cur_group = True
    if b == "N":
        cur_group = False
ans += cur_group
print(ans)