1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
n = input()
tests = input()

count = 0

for group in range(10):
    for i in range(group * int(n) // 10, (group + 1) * int(n) // 10):
        if tests[i] == "N":
            break
    else:
        count += 1

print(count)