1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
n = input()
txt = input()
flag = True
n = int(n)
c = n // 10
i = 1
cnt = 0
if txt[0] == "N":
        flag = False
if c == 1:
    if flag:
        cnt += 1
    flag = True
while i < n:
    if txt[i] == "N":
        flag = False
    if i % c == c - 1:
        if flag:
            cnt += 1
        flag = True
    i += 1
print(cnt)