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) if l==[]: print(0) else: print(*l)