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)