1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
def main():
    n = int(input())
    tests = input()
    step = n // 10
    count = 0

    for i in range(10):
        if 'N' in tests[step * i: step * (i+1)]:
            continue
        count += 1

    print(count)
    return 0


if __name__ == '__main__':
    main()