N=int(input()) S=input() if N==1: print(0) exit(0) ans=[] for i in range(1,N): if S[i-1]=="x" and S[i]=="o": ans.append(i+1) print(*ans)