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