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