1
2
3
4
5
6
7
8
9
n = int(input())
answers = list(input())
counter = 0
x = int(n/10)
for i in range(0, n, x):
    group = answers[i:i+x]
    if not ('N' in group):
        counter+=1
print(counter)