1
2
3
4
5
6
7
n = int(input())
s = input()
score = 10
for i in range(0,n,n//10):
    if len(list(filter(lambda x: x == 'N', s[i:i+n//10]))) > 0:
        score -= 1
print(score)