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)