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

score = 0
for i in range(0, n, n//10):
    result = True
    for l in range(i, i+n//10):
        if s[l] == "N":
            result = False
    if result:
        score += 1
print(score)