1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
n=int(input())
w=True
c=0
aq=input()
a=list(aq)
for i in range(10):
    t=1
    for j in range(n//10):
        if aq[i*(n//10)+j]=="N":
            t=0
    c+=t
print(c)