n=int(input()) s=input() ans=[] for i in range(1,n): if s[i-1:i+1]=='xo': ans+=i+1, print(len(ans)) print(*ans)