n=int(input())//10 s=input() w=0 for i in range(10): w+=not s[i*n:(i+1)*n].count('N') print(w)
1 2 3 4 5 6 | n=int(input())//10 s=input() w=0 for i in range(10): w+=not s[i*n:(i+1)*n].count('N') print(w) |
n=int(input())//10 s=input() w=0 for i in range(10): w+=not s[i*n:(i+1)*n].count('N') print(w)
1 2 3 4 5 6 | n=int(input())//10 s=input() w=0 for i in range(10): w+=not s[i*n:(i+1)*n].count('N') print(w) |