n = int(input()) k = n//10 s = input() parts = [s[i:i+k] for i in range(0, n, k)] res = 0 for part in parts: if 'N' not in part: res += 1 print(res)
1 2 3 4 5 6 7 8 9 10 11 12 | n = int(input()) k = n//10 s = input() parts = [s[i:i+k] for i in range(0, n, k)] res = 0 for part in parts: if 'N' not in part: res += 1 print(res) |