n = int(input()) a = input() cnt = [] for i in range(1, n): if a[i] == "o" and a[i-1] == "x": cnt.append(i+1) print(len(cnt)) print(*cnt)