n = int(input()) d = n//10 ans = 0 testy = input() for i in range(n//d): grupa = testy[i*d:(i+1)*d] if not 'N' in grupa: ans += 1 print(ans)
1 2 3 4 5 6 7 8 9 10 | n = int(input()) d = n//10 ans = 0 testy = input() for i in range(n//d): grupa = testy[i*d:(i+1)*d] if not 'N' in grupa: ans += 1 print(ans) |