1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
n = int(input())

odp = input().strip()
it = iter(odp)
wyn = 0

subtask = n//10
for _ in range(10):
    ok = 1
    for _ in range(subtask):
        c = next(it)
        if c == 'N':
            ok = 0
    wyn += ok

print(wyn)