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