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