1
 2
 3
 4
 5
 6
 7
 8
 9
10
#!/usr/bin/env python3

n = int(input())
s = input()
num_blocks = 10
block_size = n // num_blocks

blocks = (s[i:i+block_size] for i in range(0, n, block_size))
ans = sum('N' not in block for block in blocks)
print(ans)