n, chain, result = int(input()), input(), 0 for i in [chain[i:i+int(n/10)] for i in range(0, len(chain), int(n/10))]: if "N" not in i: result+=1 print(result)
1 2 3 4 5 | n, chain, result = int(input()), input(), 0 for i in [chain[i:i+int(n/10)] for i in range(0, len(chain), int(n/10))]: if "N" not in i: result+=1 print(result) |