1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
def solve(tests):
    n = len(tests)
    score = 0
    t = n // 10
    for i in range(10):
        tak = True
        for j in range(i*t, i*t+t):
            if tests[j] == 'N':
                tak = False
                break
        score += tak
    return score


input()
print(solve(input()))