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