n=int(input()) s=input() anslist=[] for i in range(n-1): if s[i:i+1]=="xo": anslist.append(i+2) print(len(anslist)) print(*anslist)