N = int(input()) S = 'x'+input() ans = [] for i in range(1, N+1): if S[i-1:i+1] == 'xo': ans.append(i) print(len(ans)) print(*ans)