n = int(input()) s = input() a = [] for i in range(1, n): if s[i - 1 : i + 1] == "xo": a.append(i + 1) print(len(a)) print(" ".join(map(str, a)))