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