n=int(input()) s=input() l=[] for i in range(n-1): if s[i]=='x' and s[i+1]=='o': l.append(i+2) print(len(l)) print(*l)