N=input() S=input() n=len(S) num=list() for k in range(1,n): k_1=S[k-1] k_2=S[k] if k_1=='x' and k_2=='o': num.append(k+1) print(len(num)) print(*num)