1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
n = int(input().strip())
s = input().strip()
t = 0
i = 0
g = n // 10
for j in range(10):
    ok = True
    for k in range(g):
        if s[j*g+k] == 'N': ok = False
    if ok:
        t += 1
print(t)