n = int(input()) S = input() ans = [] for i in range(1, n): if S[i - 1] == "x" and S[i] == "o": ans.append(i + 1) print(len(ans)) print(*ans)