def Main(): n=int(input()) s=input() ans=[] for i in range(1,n): if s[i]=="o" and s[i-1]=="x": ans.append(i+1) print(len(ans)) print(*ans) Main()