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