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