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