n = int(input()) s = input() cnt = 0 p = [] for i in range(n-1): if s[i] == "x" and s[i+1] =="o": cnt += 1 p.append(i+2) print(cnt) print(*p)